Posted July 6, 201510 yr Hey, I'm trying to code a Mod where it will adjust the message that the client sends before it is sent to the server. I've tried using ServerChatEvent but this only fires when the server with my mod recieves a message packet. I was wondering if there is any Event's that fire when the client sends a chat message on any type of server including non-forge servers. Thanks!
July 6, 201510 yr Why? it will adjust the message that the client sends before it is sent to the server. No, there is no such event. It is possible tho. You can use KeyboardEvent to track if client pressed "enter" && "currentScreen instanceof GuiChat" That way you can pull out textfield with String typed and edit it before performing "enter". You might need reflection to access textfield, I don't remember. 1.7.10 is no longer supported by forge, you are on your own.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.