3
0
KCauldronX/patches/org/bukkit/command/defaults/ReloadCommand.java.patch
2015-03-22 20:38:04 +03:00

29 lines
1.0 KiB
Diff

--- ../src-base/minecraft/org/bukkit/command/defaults/ReloadCommand.java
+++ ../src-work/minecraft/org/bukkit/command/defaults/ReloadCommand.java
@@ -18,11 +18,25 @@
@Override
public boolean execute(CommandSender sender, String currentAlias, String[] args) {
+ // Cauldron start - disable reload as it causes many issues with mods
+ /*
if (!testPermission(sender)) return true;
+ org.spigotmc.CustomTimingsHandler.reload(); // Spigot: TODO: Why is this here?
Bukkit.reload();
Command.broadcastCommandMessage(sender, ChatColor.GREEN + "Reload complete.");
+ */
+ sender.sendMessage(ChatColor.RED + "Reload not allowed on a Cauldron server.");
+ // Cauldron end
return true;
}
+
+ // Spigot Start
+ @Override
+ public java.util.List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException
+ {
+ return java.util.Collections.emptyList();
+ }
+ // Spigot End
}