}
}
@SubscribeEvent
public void clientChat(ClientChatReceivedEvent event) {
IChatComponent message = event.message;
if(message != null && message.getFormattedText() != null) {
String realMessage = "";
try {
realMessage = message.getFormattedText();
} catch(ClassCastException e) {
//Ignore that
} catch(Exception e) {
e.printStackTrace();
}