mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-26 02:27:56 +01:00
Mojang uses "if > 100", therefore the inverse of that is "if <=100" regarding chat length.
This commit is contained in:
parent
a272afd693
commit
d98ade5a9b
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user