Created
September 23, 2015 05:18
-
-
Save LaxWasHere/7f952d4fadf44b43f4b2 to your computer and use it in GitHub Desktop.
Bukkit /reload fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EventHandler | |
public void onPreCom(PlayerCommandPreprocessEvent ev) { | |
if (ev.getMessage().equalsIgnoreCase("/reload")) { | |
Bukkit.getConsoleSender().sendMessage(ChatColor.MAGIC + "Stupid command detected! Shutting down"); | |
Bukkit.shutdown(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment