Question How to cancel PlayerChatEvent

MomiNeko

New member
Apr 3, 2023
1
0
1
event.setResult(PlayerChatEvent.ChatResult.denied());

This is kicked and cannot be used
 

4drian3d

Member
Jan 5, 2022
60
4
8
Perú
event.setResult(PlayerChatEvent.ChatResult.denied());

This is kicked and cannot be used
Velocity only kicks the player if you have a client with version 1.19.1 or higher and with a valid signed key (this was done because Mojang implemented the reporting system from version 1.19.1 onwards and made it more difficult to cancel or modify commands and chat from the proxy)
If you want to prevent it from kicking, install SignedVelocity
 
Last edited: