Since many years sever owners had to suffer because of reload.
This plugin is made to fix this issue, by correcting the issues with reload, in a way that never seen before.
This should tell you enought:
Code (Java):
@EventHandler
(priority
= EventPriority.
HIGH
)
public
void onReloadCommand
(PlayerCommandPreprocessEvent e
)
{
String cmd
= e.
getMessage
(
).
split
(
" "
)
[
0
].
replace
(
"/",
""
).
replaceAll
(
"(?i)bukkit:",
""
)
;
if
(cmd.
equalsIgnoreCase
(
"reload"
)
|| cmd.
equalsIgnoreCase
(
"rl"
)
)
{
e.
setCancelled
(
true
)
;
getLogger
(
).
info
(ChatColor.
RED
+
"I see you reloaded, let me help you with that!"
)
;
Bukkit.
shutdown
(
)
;
Works from both ingame and the console.