Discussion in 'Spigot Plugin Development' started by Frealy1995, May 28, 2016.

  1. Hello how to Complete event setCancelled?

    Not working code :

    Code (Text):

        public void onTab(PlayerChatTabCompleteEvent e){
            if(e.getChatMessage().equals("/") || e.getChatMessage().equals("//")){
  2. e.setCanceled(True);
    ALso have you registered events
  3. e.setCancelled(true); none, other solved please.
  4. What's wrong about? If it's not work i am sure you don't use the correct event for your need or you don't register it correctly? Is it in the main claas or another?
  5. I can confirm, I've tested here, the PlayerChatTabCompleteEvent is not being fired....