Essential core commands shouldn't be overriden. Fixes BUKKIT-1546

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
Bukkit/Spigot 2012-11-16 23:47:07 -05:00
parent e80af045dc
commit cf99b7e756

View file

@ -27,10 +27,6 @@ public class SimpleCommandMap implements CommandMap {
static {
fallbackCommands.add(new ListCommand());
fallbackCommands.add(new StopCommand());
fallbackCommands.add(new SaveCommand());
fallbackCommands.add(new SaveOnCommand());
fallbackCommands.add(new SaveOffCommand());
fallbackCommands.add(new OpCommand());
fallbackCommands.add(new DeopCommand());
fallbackCommands.add(new BanIpCommand());
@ -66,6 +62,10 @@ public class SimpleCommandMap implements CommandMap {
}
private void setDefaultCommands(final Server server) {
register("bukkit", new SaveCommand());
register("bukkit", new SaveOnCommand());
register("bukkit", new SaveOffCommand());
register("bukkit", new StopCommand());
register("bukkit", new VersionCommand("version"));
register("bukkit", new ReloadCommand("reload"));
register("bukkit", new PluginsCommand("plugins"));