No more errors in the server console, but a certain mod is still breaking the rules.
This commit is contained in:
parent
9b1f1d9a50
commit
7974ccc0bf
@ -59,6 +59,7 @@ public class ServerConnection extends GenericConnection implements Server
|
||||
stream.readPacket();
|
||||
|
||||
byte[] loginResponse = null;
|
||||
boolean forgeIHateYou = false;
|
||||
loop:
|
||||
while ( true )
|
||||
{
|
||||
@ -69,10 +70,14 @@ public class ServerConnection extends GenericConnection implements Server
|
||||
case 0x01:
|
||||
break loop;
|
||||
case 0xFA:
|
||||
if ( !forgeIHateYou )
|
||||
{
|
||||
for ( PacketFAPluginMessage message : user.loginMessages )
|
||||
{
|
||||
stream.write( message );
|
||||
}
|
||||
forgeIHateYou = true;
|
||||
}
|
||||
break;
|
||||
case 0xFF:
|
||||
throw new KickException( "[Kicked] " + new PacketFFKick( loginResponse ).message );
|
||||
|
Loading…
Reference in New Issue
Block a user