Sueta

StopReload

3.1

Did reload broke something for you? It's time to fix the issue!

·Plugin

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:

@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.

Similar projects

Plugin →