ClientChatEvent is fired whenever the client is about to send a chat message or command to the server.
This event is fired via
ForgeEventFactory.onClientSendMessage(String)
,
which is executed by
GuiScreen#sendChatMessage(String, boolean)
message
contains the message that will be sent to the server. This can be changed by mods.
originalMessage
contains the original message that was going to be sent to the server. This cannot be changed by mods.
This event is
Cancelable
.
If this event is canceled, the chat message or command is never sent to the server.
This event does not have a result.
HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.