ServerChatEvent is fired whenever a C01PacketChatMessage is processed.
This event is fired via
ForgeHooks#onServerChatEvent(net.minecraft.network.NetHandlerPlayServer, String, ChatComponentTranslation),
which is executed by the NetHandlerPlayServer#processChatMessage(net.minecraft.network.play.client.C01PacketChatMessage)
username contains the username of the player sending the chat message.
message contains the message being sent.
player the instance of EntityPlayerMP for the player sending the chat message.
component contains the instance of ChatComponentTranslation for the sent message.
This event is
Cancelable.
If this event is canceled, the chat message is never distributed to all clients.
This event does not have a result.
HasResult
This event is fired on the
MinecraftForge#EVENT_BUS.