Examples of addPlotter()


Examples of ch.njol.skript.Metrics.Graph.addPlotter()

       
        EvtSkript.onSkriptStart();
       
        final Metrics metrics = new Metrics(Skript.this);
        final Graph scriptData = metrics.createGraph("data");
        scriptData.addPlotter(new Plotter("scripts") {
          @Override
          public int getValue() {
            return ScriptLoader.loadedScripts();
          }
        });
View Full Code Here

Examples of com.comphenix.protocol.metrics.Metrics.Graph.addPlotter()

   
    for (Map.Entry<String, Integer> entry : getPluginUsers(ProtocolLibrary.getProtocolManager()).entrySet()) {
      final int count = entry.getValue();
     
      // Plot plugins of this type
      pluginUsers.addPlotter(new Metrics.Plotter(entry.getKey()) {
        @Override
        public int getValue() {
          return count;
        }
      });
View Full Code Here

Examples of com.github.zathrus_writer.commandsex.helpers.Metrics.Graph.addPlotter()

      try {
          metrics = new Metrics(plugin);
         
          Graph featureGraph = metrics.createGraph("Feature Statistics");
          if (loadedClasses.contains("Init_Home")){
            featureGraph.addPlotter(new Metrics.Plotter("Homes Set") {
            @Override
              public int getValue() {
              int count = 0;
              try {
                ResultSet rs = SQLManager.query_res("SELECT player_name FROM " + SQLManager.prefix + "homes");
View Full Code Here

Examples of com.github.zathrus_writer.commandsex.helpers.Metrics.Graph.addPlotter()

            }
          });
          }
         
          if (loadedClasses.contains("Init_Warps")){
            featureGraph.addPlotter(new Metrics.Plotter("Warps Set") {
            @Override
            public int getValue() {
              int count = 0;
              try {
                ResultSet rs = SQLManager.query_res("SELECT owner_name FROM " + SQLManager.prefix + "warps");
View Full Code Here

Examples of com.github.zathrus_writer.commandsex.helpers.Metrics.Graph.addPlotter()

            }
          });
          }
         
          if (loadedClasses.contains("Init_Nicknames")){
            featureGraph.addPlotter(new Metrics.Plotter("Nicknames Set") {
            @Override
            public int getValue() {
              int count = 0;
              try {
                ResultSet rs = SQLManager.query_res("SELECT player_name FROM " + SQLManager.prefix + "nicknames");
View Full Code Here

Examples of com.github.zathrus_writer.commandsex.helpers.Metrics.Graph.addPlotter()

            }
          });
          }
         
          if (loadedClasses.contains("Init_Nametags")){
            featureGraph.addPlotter(new Metrics.Plotter("Nametags Set") {
            @Override
            public int getValue() {
              int count = 0;
              try {
                ResultSet rs = SQLManager.query_res("SELECT player_name FROM " + SQLManager.prefix + "nametags");
View Full Code Here

Examples of com.github.zathrus_writer.commandsex.helpers.Metrics.Graph.addPlotter()

            }
          });
          }
         
          if (loadedClasses.contains("Init_Kits")){
            featureGraph.addPlotter(new Metrics.Plotter("Kits Set") {
            @Override
            public int getValue() {
              int count = 0;
              FileConfiguration f = CommandsEX.getConf();
              ConfigurationSection configGroups = f.getConfigurationSection("kits");
View Full Code Here

Examples of com.github.zathrus_writer.commandsex.helpers.Metrics.Graph.addPlotter()

          Graph commandUsesGraph = metrics.createGraph("Command Uses");
          for (final String s : loadedClasses){
            if (s.startsWith("Command_cex_")){
              String key = s.replaceAll("Command_cex_", "/");
             
              commandUsesGraph.addPlotter(new Metrics.Plotter(key) {
                @Override
                public int getValue() {
                  return (commandUses.containsKey(s) ? commandUses.get(s) : 0);
                }
              });
View Full Code Here

Examples of com.khorn.terraincontrol.bukkit.metrics.Metrics.Graph.addPlotter()

        {
            Metrics metrics = new Metrics(plugin);

            Graph usedBiomeModesGraph = metrics.createGraph("Biome modes used");

            usedBiomeModesGraph.addPlotter(new Metrics.Plotter("Normal")
            {
                @Override
                public int getValue()
                {
                    return normalMode;
View Full Code Here

Examples of com.khorn.terraincontrol.bukkit.metrics.Metrics.Graph.addPlotter()

                public int getValue()
                {
                    return normalMode;
                }
            });
            usedBiomeModesGraph.addPlotter(new Metrics.Plotter("FromImage")
            {
                @Override
                public int getValue()
                {
                    return fromImageMode;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.