strip message newlines

This commit is contained in:
Anuken 2021-09-13 09:03:56 -04:00
parent edbe795aa5
commit 826ddf4aad

View File

@ -218,6 +218,8 @@ public class NetClient implements ApplicationListener{
throw new ValidateException(player, "Player has sent a message above the text limit.");
}
message = message.replace("\n", "");
Events.fire(new PlayerChatEvent(player, message));
//log commands before they are handled