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:
parent
08891e9770
commit
e2c77c0798
@ -1,8 +1,11 @@
|
|||||||
package cn.citycraft.SimpleProtect;
|
package cn.citycraft.SimpleProtect;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
import org.mcstats.Metrics;
|
||||||
|
|
||||||
import cn.citycraft.PluginHelper.config.FileConfig;
|
import cn.citycraft.PluginHelper.config.FileConfig;
|
||||||
import cn.citycraft.PluginHelper.utils.VersionChecker;
|
import cn.citycraft.PluginHelper.utils.VersionChecker;
|
||||||
@ -71,7 +74,11 @@ public class SimpleProtect extends JavaPlugin {
|
|||||||
getCommand("simpleprotect").setExecutor(new SimpleProtectCommand(this));
|
getCommand("simpleprotect").setExecutor(new SimpleProtectCommand(this));
|
||||||
getServer().getConsoleSender().sendMessage("==========" + servername + pluginname + "==========");
|
getServer().getConsoleSender().sendMessage("==========" + servername + pluginname + "==========");
|
||||||
new VersionChecker(this);
|
new VersionChecker(this);
|
||||||
|
try {
|
||||||
|
Metrics metrics = new Metrics(this);
|
||||||
|
metrics.start();
|
||||||
|
} catch (IOException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -53,7 +53,6 @@ public class SimpleProtectCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
Player p = Bukkit.getPlayer(args[1]);
|
Player p = Bukkit.getPlayer(args[1]);
|
||||||
switch (args[0]) {
|
switch (args[0]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user