Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler(priority=EventPriority.HIGHEST)
- public boolean onChat(CommandSender sender, Command cmd, PlayerCommandPreprocessEvent e){
- if (cmd.getName().equalsIgnoreCase("ver")){
- if (!(sender instanceof Player)){
- sender.sendMessage("This command is not allowed on this server..");
- return true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement