As far I'm aware commands are overlapping each other: if your plugin uses command /test and mine uses /test one of them will work, right? Is there a way to listen for commands like actual events in way: - if command is /test - pass it to plugin A - pass it to plugin B So I could cancel other plugin's commands if I wish.
Code:java @EventHandlerpublic void onPlayerChat(PlayerChatEvent evt){Player p = evt.getPlayer();if(evt.getMessage().equalsIgnoreCase("/test")){p.performCommand("test");//then do, what your plugin do after using the command evt.setCancelled(true);}} Is this what you're looking for? Edit: Added the setCancelled(true)
Th3Br1x Never though about catching it as PlayerChat. You are ceancelling it - OK, yet it will still register as command for other plugin, right?