Mojang uses "if > 100", therefore the inverse of that is "if <=100" regarding chat length.

This commit is contained in:
md_5 2014-02-13 07:25:56 +11:00
parent a272afd693
commit d98ade5a9b

View File

@ -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() )