Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onPlayerCommandPreprocessEvent(PlayerCommandPreprocessEvent event) {
- Player p = event.getPlayer();
- if(event.getMessage().equalsIgnoreCase("/" + "home")) {
- p.sendMessage("detected home command");
- } else {
- p.sendMessage("did not detect home command");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement