29 lines
1.0 KiB
Diff
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
|
|
}
|