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