Hello,
i would like to programming a Chat Log Mod, and i use the ClientChatReceivedEvent to read the Messages came from the Server.
The problem is, sometimes the Event is fired and sometimes not.
In the Single Player work its perfectly too.
on some servers it works and the event is fired and on some servers not :(.
Why?
Code:
@SubscribeEvent
public static void onChatReceive(ClientChatReceivedEvent event) {
if(event.getType().equals(ChatType.CHAT)) {
String message = event.getMessage().getFormattedText();
Chatlog.log(message); //Chatlog class is my own made class
}
}
And YES the Listener is registered.
Sorry for my perhaps bad english.