Commits
md_5 authored 53a4447b845
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 | |
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 | } |