From a90b22e3201d8372fbe6e53e4e1f965e01c3566a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 25 Jan 2015 10:28:03 +1100 Subject: [PATCH] SPIGOT-469: Add nag message for using (buggy) reload command. By: md_5 --- .../main/java/org/bukkit/command/defaults/ReloadCommand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/ReloadCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/ReloadCommand.java index fb3c90fbd5..eb018f1614 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/ReloadCommand.java +++ b/paper-api/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.");