diff options
author | md_5 <git@md-5.net> | 2015-01-25 10:28:03 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-01-25 10:28:03 +1100 |
commit | 53a4447b8457d14342d5b8c10b7f98cb5e4b585d (patch) | |
tree | 4e803080ceba7aefa30f32193e1b9bb15c397403 | |
parent | bd465016092b2281861d27847901772b5d6b99f7 (diff) | |
download | bukkit-53a4447b8457d14342d5b8c10b7f98cb5e4b585d.tar bukkit-53a4447b8457d14342d5b8c10b7f98cb5e4b585d.tar.gz bukkit-53a4447b8457d14342d5b8c10b7f98cb5e4b585d.tar.lz bukkit-53a4447b8457d14342d5b8c10b7f98cb5e4b585d.tar.xz bukkit-53a4447b8457d14342d5b8c10b7f98cb5e4b585d.zip |
SPIGOT-469: Add nag message for using (buggy) reload command.
-rw-r--r-- | src/main/java/org/bukkit/command/defaults/ReloadCommand.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java index fb3c90fb..eb018f16 100644 --- a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java +++ b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java @@ -20,6 +20,8 @@ public class ReloadCommand extends BukkitCommand { public boolean execute(CommandSender sender, String currentAlias, String[] args) { if (!testPermission(sender)) return true; + Command.broadcastCommandMessage(sender, ChatColor.RED + "Please note that this command is not supported and may cause issues when using some plugins."); + Command.broadcastCommandMessage(sender, ChatColor.RED + "If you encounter any issues please use the /stop command to restart your server."); Bukkit.reload(); Command.broadcastCommandMessage(sender, ChatColor.GREEN + "Reload complete."); |