Solved ASyncPlayerChatEvent

Discussion in 'Spigot Plugin Development' started by Olivier062001, May 5, 2017.

Thread Status:
Not open for further replies.
  1. Im trying to make this line of code work but it dosn't work at all, it dosn't event send the message "Plz work !".
    Code (Text):
        @EventHandler
        public void onPlayerChatEvent(final AsyncPlayerChatEvent event) {
            Player p = event.getPlayer();
            p.sendMessage("Plz work !");
            if(Call911.getInstance().playerList911.contains(p)){
                p.sendMessage("WORK !");
                Call911.getInstance().playerList911.remove(p);  
            }
        }
     
  2. Have you registered the listener? (if so, post the relevant snippet)
     
    • Agree Agree x 2
Thread Status:
Not open for further replies.