private void setVanillaCommands() { commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandAchievement(), "/achievement give <stat_name> [player]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandBanPlayer(), "/ban <playername> [reason]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandBanIp(), "/ban-ip <ip-address|playername>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandListBans(), "/banlist [ips]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandClearInventory(), "/clear <playername> [item] [metadata]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandDefaultGameMode(), "/defaultgamemode <mode>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandDeOp(), "/deop <playername>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandDifficulty(), "/difficulty <new difficulty>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandEffect(), "/effect <player> <effect|clear> [seconds] [amplifier]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandEnchant(), "/enchant <playername> <enchantment ID> [enchantment level]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandGameMode(), "/gamemode <mode> [player]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandGameRule(), "/gamerule <rulename> [true|false]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandGive(), "/give <playername> <item> [amount] [metadata] [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandHelp(), "/help [page|commandname]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandSetPlayerTimeout(), "/setidletimeout <Minutes until kick>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandServerKick(), "/kick <playername> [reason]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandKill(), "/kill [playername]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandListPlayers(), "/list")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandEmote(), "/me <actiontext>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandOp(), "/op <playername>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandPardonPlayer(), "/pardon <playername>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandPardonIp(), "/pardon-ip <ip-address>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandPlaySound(), "/playsound <sound> <playername> [x] [y] [z] [volume] [pitch] [minimumVolume]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandBroadcast(), "/say <message>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandScoreboard(), "/scoreboard")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandShowSeed(), "/seed")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandSetBlock(), "/setblock <x> <y> <z> <tilename> [datavalue] [oldblockHandling] [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandSetDefaultSpawnpoint(), "/setworldspawn [x] [y] [z]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandSetSpawnpoint(), "/spawnpoint <playername> [x] [y] [z]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandSpreadPlayers(), "/spreadplayers <x> <z> [spreadDistance] [maxRange] [respectTeams] <playernames>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandSummon(), "/summon <EntityName> [x] [y] [z] [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandTeleport(), "/tp [player] <target>\n/tp [player] <x> <y> <z>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandMessage(), "/tell <playername> <message>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandMessageRaw(), "/tellraw <playername> <raw message>")); // Uranium retrotitle support commandMap.register("minecraft",new VanillaCommandWrapper(new CommandTitle(),"/title <player> <title|subtitle|clear|reset|times> ...")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandTestFor(), "/testfor <playername | selector> [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandTestForBlock(), "/testforblock <x> <y> <z> <tilename> [datavalue] [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandTime(), "/time set <value>\n/time add <value>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandToggleDownfall(), "/toggledownfall")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandWeather(), "/weather <clear/rain/thunder> [duration in seconds]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandWhitelist(), "/whitelist (add|remove) <player>\n/whitelist (on|off|list|reload)")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandXP(), "/xp <amount> [player]\n/xp <amount>L [player]")); // This is what is in the lang file, I swear. commandMap.register("minecraft", new VanillaCommandWrapper(new CommandNetstat(), "/list")); }
private void setVanillaCommands() { commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandAchievement(), "/achievement give <stat_name> [player]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandBanPlayer(), "/ban <playername> [reason]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandBanIp(), "/ban-ip <ip-address|playername>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandListBans(), "/banlist [ips]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandClearInventory(), "/clear <playername> [item] [metadata]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandDefaultGameMode(), "/defaultgamemode <mode>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandDeOp(), "/deop <playername>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandDifficulty(), "/difficulty <new difficulty>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandEffect(), "/effect <player> <effect|clear> [seconds] [amplifier]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandEnchant(), "/enchant <playername> <enchantment ID> [enchantment level]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandGameMode(), "/gamemode <mode> [player]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandGameRule(), "/gamerule <rulename> [true|false]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandGive(), "/give <playername> <item> [amount] [metadata] [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandHelp(), "/help [page|commandname]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandSetPlayerTimeout(), "/setidletimeout <Minutes until kick>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandServerKick(), "/kick <playername> [reason]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandKill(), "/kill [playername]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandListPlayers(), "/list")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandEmote(), "/me <actiontext>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandOp(), "/op <playername>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandPardonPlayer(), "/pardon <playername>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandPardonIp(), "/pardon-ip <ip-address>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandPlaySound(), "/playsound <sound> <playername> [x] [y] [z] [volume] [pitch] [minimumVolume]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandBroadcast(), "/say <message>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandScoreboard(), "/scoreboard")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandShowSeed(), "/seed")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandSetBlock(), "/setblock <x> <y> <z> <tilename> [datavalue] [oldblockHandling] [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandSetDefaultSpawnpoint(), "/setworldspawn [x] [y] [z]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandSetSpawnpoint(), "/spawnpoint <playername> [x] [y] [z]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandSpreadPlayers(), "/spreadplayers <x> <z> [spreadDistance] [maxRange] [respectTeams] <playernames>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandSummon(), "/summon <EntityName> [x] [y] [z] [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandTeleport(), "/tp [player] <target>\n/tp [player] <x> <y> <z>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandMessage(), "/tell <playername> <message>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandMessageRaw(), "/tellraw <playername> <raw message>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandTestFor(), "/testfor <playername | selector> [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandTestForBlock(), "/testforblock <x> <y> <z> <tilename> [datavalue] [dataTag]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandTime(), "/time set <value>\n/time add <value>")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandToggleDownfall(), "/toggledownfall")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandWeather(), "/weather <clear/rain/thunder> [duration in seconds]")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.server.CommandWhitelist(), "/whitelist (add|remove) <player>\n/whitelist (on|off|list|reload)")); commandMap.register("minecraft", new VanillaCommandWrapper(new net.minecraft.command.CommandXP(), "/xp <amount> [player]\n/xp <amount>L [player]")); // This is what is in the lang file, I swear. commandMap.register("minecraft", new VanillaCommandWrapper(new CommandNetstat(), "/list")); }
private void setVanillaCommands() { commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandAchievement(), "/achievement give <stat_name> [player]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandBanPlayer(), "/ban <playername> [reason]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandBanIp(), "/ban-ip <ip-address|playername>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandListBans(), "/banlist [ips]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandClearInventory(), "/clear <playername> [item] [metadata]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandDefaultGameMode(), "/defaultgamemode <mode>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandDeOp(), "/deop <playername>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandDifficulty(), "/difficulty <new difficulty>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandEffect(), "/effect <player> <effect|clear> [seconds] [amplifier]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandEnchant(), "/enchant <playername> <enchantment ID> [enchantment level]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandGameMode(), "/gamemode <mode> [player]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandGameRule(), "/gamerule <rulename> [true|false]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandGive(), "/give <playername> <item> [amount] [metadata] [dataTag]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandHelp(), "/help [page|commandname]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandSetPlayerTimeout(), "/setidletimeout <Minutes until kick>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandServerKick(), "/kick <playername> [reason]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandKill(), "/kill [playername]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandListPlayers(), "/list")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandEmote(), "/me <actiontext>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandOp(), "/op <playername>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandPardonPlayer(), "/pardon <playername>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandPardonIp(), "/pardon-ip <ip-address>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandPlaySound(), "/playsound <sound> <playername> [x] [y] [z] [volume] [pitch] [minimumVolume]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandBroadcast(), "/say <message>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandScoreboard(), "/scoreboard")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandShowSeed(), "/seed")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandSetBlock(), "/setblock <x> <y> <z> <tilename> [datavalue] [oldblockHandling] [dataTag]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandSetDefaultSpawnpoint(), "/setworldspawn [x] [y] [z]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandSetSpawnpoint(), "/spawnpoint <playername> [x] [y] [z]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandSpreadPlayers(), "/spreadplayers <x> <z> [spreadDistance] [maxRange] [respectTeams] <playernames>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandSummon(), "/summon <EntityName> [x] [y] [z] [dataTag]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandTeleport(), "/tp [player] <target>\n/tp [player] <x> <y> <z>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandMessage(), "/tell <playername> <message>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandMessageRaw(), "/tellraw <playername> <raw message>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandTestFor(), "/testfor <playername | selector> [dataTag]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandTestForBlock(), "/testforblock <x> <y> <z> <tilename> [datavalue] [dataTag]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandTime(), "/time set <value>\n/time add <value>")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandToggleDownfall(), "/toggledownfall")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandWeather(), "/weather <clear/rain/thunder> [duration in seconds]")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.server.CommandWhitelist(), "/whitelist (add|remove) <player>\n/whitelist (on|off|list|reload)")); commandMap.register(mc_text_0, new VanillaCommandWrapper(new net.minecraft.command.CommandXP(), "/xp <amount> [player]\n/xp <amount>L [player]")); // This is what is in the lang file, I swear. commandMap.register(mc_text_0, new VanillaCommandWrapper(new CommandNetstat(), "/list")); }
public void registerVanillaCommands() { // Cauldron - do not register vanilla commands replaced by Bukkit /* this.registerCommand(new CommandTime()); this.registerCommand(new CommandGameMode()); this.registerCommand(new CommandDifficulty()); this.registerCommand(new CommandDefaultGameMode()); this.registerCommand(new CommandKill()); this.registerCommand(new CommandToggleDownfall()); this.registerCommand(new CommandWeather()); this.registerCommand(new CommandXP()); this.registerCommand(new CommandTeleport()); this.registerCommand(new CommandGive()); this.registerCommand(new CommandEffect()); this.registerCommand(new CommandEnchant()); this.registerCommand(new CommandEmote()); this.registerCommand(new CommandShowSeed()); this.registerCommand(new CommandHelp()); this.registerCommand(new CommandMessage()); this.registerCommand(new CommandBroadcast()); this.registerCommand(new CommandSetSpawnpoint()); this.registerCommand(new CommandSetDefaultSpawnpoint()); this.registerCommand(new CommandGameRule()); this.registerCommand(new CommandClearInventory()); this.registerCommand(new CommandTestFor()); */ // Cauldron start - add permission nodes for rest of vanilla commands this.registerCommand("vanilla.command", new CommandDebug()); this.registerCommand("vanilla.command", new CommandSpreadPlayers()); this.registerCommand("vanilla.command", new CommandPlaySound()); this.registerCommand("vanilla.command", new CommandScoreboard()); this.registerCommand("vanilla.command", new CommandAchievement()); this.registerCommand("vanilla.command", new CommandSummon()); this.registerCommand("vanilla.command", new CommandSetBlock()); this.registerCommand("vanilla.command", new CommandTestForBlock()); this.registerCommand("vanilla.command", new CommandMessageRaw()); this.registerCommand("vanilla.command", new CommandNetstat()); // Cauldron end if (MinecraftServer.getServer().isDedicatedServer()) { /* this.registerCommand(new CommandOp()); this.registerCommand(new CommandDeOp()); this.registerCommand(new CommandStop()); this.registerCommand(new CommandSaveAll()); this.registerCommand(new CommandSaveOff()); this.registerCommand(new CommandSaveOn()); this.registerCommand(new CommandBanIp()); this.registerCommand(new CommandPardonIp()); this.registerCommand(new CommandBanPlayer()); this.registerCommand(new CommandListBans()); this.registerCommand(new CommandPardonPlayer()); this.registerCommand(new CommandServerKick()); this.registerCommand(new CommandListPlayers()); this.registerCommand(new CommandWhitelist()); this.registerCommand(new CommandSetPlayerTimeout()); */ } else { this.registerCommand(new CommandPublishLocalServer()); } CommandBase.setAdminCommander(this); // Cauldron end }
public ServerCommandManager() { this.registerCommand(new CommandTime()); this.registerCommand(new CommandGameMode()); this.registerCommand(new CommandDifficulty()); this.registerCommand(new CommandDefaultGameMode()); this.registerCommand(new CommandKill()); this.registerCommand(new CommandToggleDownfall()); this.registerCommand(new CommandWeather()); this.registerCommand(new CommandXP()); this.registerCommand(new CommandTeleport()); this.registerCommand(new CommandGive()); this.registerCommand(new CommandEffect()); this.registerCommand(new CommandEnchant()); this.registerCommand(new CommandEmote()); this.registerCommand(new CommandShowSeed()); this.registerCommand(new CommandHelp()); this.registerCommand(new CommandDebug()); this.registerCommand(new CommandMessage()); this.registerCommand(new CommandBroadcast()); this.registerCommand(new CommandSetSpawnpoint()); this.registerCommand(new CommandSetDefaultSpawnpoint()); this.registerCommand(new CommandGameRule()); this.registerCommand(new CommandClearInventory()); this.registerCommand(new CommandTestFor()); this.registerCommand(new CommandSpreadPlayers()); this.registerCommand(new CommandPlaySound()); this.registerCommand(new CommandScoreboard()); this.registerCommand(new CommandAchievement()); this.registerCommand(new CommandSummon()); this.registerCommand(new CommandSetBlock()); this.registerCommand(new CommandTestForBlock()); this.registerCommand(new CommandMessageRaw()); if (MinecraftServer.getServer().isDedicatedServer()) { this.registerCommand(new CommandOp()); this.registerCommand(new CommandDeOp()); this.registerCommand(new CommandStop()); this.registerCommand(new CommandSaveAll()); this.registerCommand(new CommandSaveOff()); this.registerCommand(new CommandSaveOn()); this.registerCommand(new CommandBanIp()); this.registerCommand(new CommandPardonIp()); this.registerCommand(new CommandBanPlayer()); this.registerCommand(new CommandListBans()); this.registerCommand(new CommandPardonPlayer()); this.registerCommand(new CommandServerKick()); this.registerCommand(new CommandListPlayers()); this.registerCommand(new CommandWhitelist()); this.registerCommand(new CommandSetPlayerTimeout()); this.registerCommand(new CommandNetstat()); } else { this.registerCommand(new CommandPublishLocalServer()); } CommandBase.setAdminCommander(this); }