1
0
mirror of https://e.coding.net/circlecloud/SimpleProtect.git synced 2024-11-22 01:49:03 +00:00

add Metrics...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-09-17 14:21:38 +08:00
parent 08891e9770
commit e2c77c0798
2 changed files with 8 additions and 2 deletions

View File

@ -1,8 +1,11 @@
package cn.citycraft.SimpleProtect;
import java.io.IOException;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import org.mcstats.Metrics;
import cn.citycraft.PluginHelper.config.FileConfig;
import cn.citycraft.PluginHelper.utils.VersionChecker;
@ -71,7 +74,11 @@ public class SimpleProtect extends JavaPlugin {
getCommand("simpleprotect").setExecutor(new SimpleProtectCommand(this));
getServer().getConsoleSender().sendMessage("==========" + servername + pluginname + "==========");
new VersionChecker(this);
try {
Metrics metrics = new Metrics(this);
metrics.start();
} catch (IOException e) {
}
}
@Override

View File

@ -53,7 +53,6 @@ public class SimpleProtectCommand implements CommandExecutor {
return true;
}
break;
case 2:
Player p = Bukkit.getPlayer(args[1]);
switch (args[0]) {