mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
Essential core commands shouldn't be overriden. Fixes BUKKIT-1546
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
e80af045dc
commit
cf99b7e756
1 changed files with 4 additions and 4 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Reference in a new issue