1
0
forked from xjboss/KCauldronX
KCauldronX/patches/org/bukkit/command/defaults/ReloadCommand.java.patch

29 lines
1.0 KiB
Diff
Raw Normal View History

2015-03-22 17:38:04 +00:00
--- ../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
}