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();
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 );