Commits

md_5 authored 53a4447b845
SPIGOT-469: Add nag message for using (buggy) reload command.
No tags

src/main/java/org/bukkit/command/defaults/ReloadCommand.java

Modified
13 13 this.description = "Reloads the server configuration and plugins";
14 14 this.usageMessage = "/reload";
15 15 this.setPermission("bukkit.command.reload");
16 16 this.setAliases(Arrays.asList("rl"));
17 17 }
18 18
19 19 @Override
20 20 public boolean execute(CommandSender sender, String currentAlias, String[] args) {
21 21 if (!testPermission(sender)) return true;
22 22
23 + Command.broadcastCommandMessage(sender, ChatColor.RED + "Please note that this command is not supported and may cause issues when using some plugins.");
24 + Command.broadcastCommandMessage(sender, ChatColor.RED + "If you encounter any issues please use the /stop command to restart your server.");
23 25 Bukkit.reload();
24 26 Command.broadcastCommandMessage(sender, ChatColor.GREEN + "Reload complete.");
25 27
26 28 return true;
27 29 }
28 30 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut