Jump to content

[1.8.9] Cancelling Chat Event


Lqgback

Recommended Posts

Hello! As a start to a mod that I hope will remove specific chat events, I decided to attempt to remove all server chat by cancelling every "ClientChatReceivedEvent" event.

 

Here is that source:

@SubscribeEvent
public void ClientChatReceivedEvent(ClientChatReceivedEvent e) {
        
        e.setCanceled(true);
        
}

 

However, when I run the mod, there is no visible effect. Anyone know why this might happen?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.