Don't forward unusually large plugin messages during login

Thanks fejm
This commit is contained in:
md_5 2018-05-13 11:42:20 +10:00
parent f54f0e3f6a
commit 968916c0b8

View File

@ -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;
}
};
//