Add a chat message length limit to avoid crashing with too big packets sent to clients.

This commit is contained in:
Jakub Szewczyk committed 2022-05-05 20:26:18 +01:00
1 parent 236744c74e
commit 8abb3efbfb
6 files changed
+42 -24

No files matched your search

@@ -35,6 +35,8 @@ public interface IPlayer {
@ZenMethod
void sendChat(IChatMessage message);
int MAX_CHAT_MESSAGE_LENGTH = 512;
@ZenMethod
void sendChat(String message);