From ab9153ddc37dc05162c7d00d70c725556cc2c3ea Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 26 May 2021 10:31:08 +1000 Subject: [PATCH] Further increase length limit for TO_CLIENT chat packets --- .../src/main/java/net/md_5/bungee/protocol/packet/Chat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/Chat.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/Chat.java index f886fe6e..e3a4d250 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/Chat.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/Chat.java @@ -40,7 +40,7 @@ public class Chat extends DefinedPacket @Override public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) { - message = readString( buf, ( direction == ProtocolConstants.Direction.TO_CLIENT ) ? Short.MAX_VALUE : 256 ); + message = readString( buf, ( direction == ProtocolConstants.Direction.TO_CLIENT ) ? 262144 : 256 ); if ( direction == ProtocolConstants.Direction.TO_CLIENT ) { position = buf.readByte();