No more errors in the server console, but a certain mod is still breaking the rules.

This commit is contained in:
md_5 2013-02-14 19:50:57 +11:00
parent 9b1f1d9a50
commit 7974ccc0bf

View File

@ -59,6 +59,7 @@ public class ServerConnection extends GenericConnection implements Server
stream.readPacket(); stream.readPacket();
byte[] loginResponse = null; byte[] loginResponse = null;
boolean forgeIHateYou = false;
loop: loop:
while ( true ) while ( true )
{ {
@ -69,10 +70,14 @@ public class ServerConnection extends GenericConnection implements Server
case 0x01: case 0x01:
break loop; break loop;
case 0xFA: case 0xFA:
if ( !forgeIHateYou )
{
for ( PacketFAPluginMessage message : user.loginMessages ) for ( PacketFAPluginMessage message : user.loginMessages )
{ {
stream.write( message ); stream.write( message );
} }
forgeIHateYou = true;
}
break; break;
case 0xFF: case 0xFF:
throw new KickException( "[Kicked] " + new PacketFFKick( loginResponse ).message ); throw new KickException( "[Kicked] " + new PacketFFKick( loginResponse ).message );