mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-24 22:04:23 +00:00
Add a chat message length limit to avoid crashing with too big packets sent to clients.
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user