package cn.citycraft.CTZServer.commands; import org.bukkit.ChatColor; import cn.citycraft.CTZServer.CTZServer; import cn.citycraft.CTZServer.ServerThread; public class CommandStop extends BaseCommand { ServerThread serverThread; public CommandStop(ServerThread serverThread) { super("stop"); this.serverThread = serverThread; } @Override public void execute(String label, String[] args) { CTZServer.getLogger().info(ChatColor.RED + "开始关闭服务器..."); serverThread.getServer().ShutDown(); } @Override public String getDescription() { return ChatColor.RED + "关闭服务器"; } @Override public int getMinimumArguments() { return 0; } @Override public String getPossibleArguments() { return null; } }