From d98ade5a9bee778a2645d6c6eac1c8f963228cf5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 13 Feb 2014 07:25:56 +1100 Subject: [PATCH] Mojang uses "if > 100", therefore the inverse of that is "if <=100" regarding chat length. --- .../main/java/net/md_5/bungee/connection/UpstreamBridge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java index 1d3d28240..c29cbd071 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java @@ -82,7 +82,7 @@ public class UpstreamBridge extends PacketHandler @Override public void handle(Chat chat) throws Exception { - Preconditions.checkArgument( chat.getMessage().length() < 100, "Chat message too long" ); // Mojang limit, check on updates + Preconditions.checkArgument( chat.getMessage().length() <= 100, "Chat message too long" ); // Mojang limit, check on updates ChatEvent chatEvent = new ChatEvent( con, con.getServer(), chat.getMessage() ); if ( !bungee.getPluginManager().callEvent( chatEvent ).isCancelled() )