mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-24 01:27:38 +01:00
Don't forward unusually large plugin messages during login
Thanks fejm
This commit is contained in:
parent
f54f0e3f6a
commit
968916c0b8
@ -26,7 +26,7 @@ public class PluginMessage extends DefinedPacket
|
||||
@Override
|
||||
public boolean apply(PluginMessage input)
|
||||
{
|
||||
return input.getTag().equals( "REGISTER" ) || input.getTag().equals( "MC|Brand" );
|
||||
return ( input.getTag().equals( "REGISTER" ) || input.getTag().equals( "MC|Brand" ) ) && input.getData().length < Byte.MAX_VALUE;
|
||||
}
|
||||
};
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user