Hi there,
Currently I’m developing an multiserver chat solution for our network but I run into an issue with the onChat function.
I’ve created an onChat listener (as below)
public void onChat(MessageChannelEvent.Chat event) {
String input = TextSerializers.FORMATTING_CODE.serialize(event.getMessage().toText());
CrossChat.writeSock(input);
}
But this also sends stuff to our relay which is not needed, how can I check if the message came from an player entity?