Don't send a Kick during the STATUS protocol as it doesn't support it
This commit is contained in:
@@ -536,8 +536,11 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
|
{
|
||||||
|
if (thisState != State.STATUS && thisState != State.PING)
|
||||||
{
|
{
|
||||||
unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
|
unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
|
||||||
|
}
|
||||||
ch.close();
|
ch.close();
|
||||||
}
|
}
|
||||||
}, 500, TimeUnit.MILLISECONDS );
|
}, 500, TimeUnit.MILLISECONDS );
|
||||||
|
Reference in New Issue
Block a user