Unable to cancel player chat message

patrickstar

New member
Aug 17, 2022
1
0
1
Context :Velocity3.1.1, Spongeforge, win10
I want to be able to cancel the event and then broadcast the message to all servers. So i do this:
@Subscribe public void onPlayerChat(PlayerChatEvent event) { event.setResult(PlayerChatEvent.ChatResult.denied()); }
But it doesn't work, the player still gets the message.
 
Version Output
Velocity3.1.1