Unable to cancel player chat message

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

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