mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-23 18:55:22 +01:00
Don't send a Kick during the STATUS protocol as it doesn't support it
This commit is contained in:
parent
f9773a69c3
commit
76052b92d3
@ -537,7 +537,10 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
|
||||
if (thisState != State.STATUS && thisState != State.PING)
|
||||
{
|
||||
unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
|
||||
}
|
||||
ch.close();
|
||||
}
|
||||
}, 500, TimeUnit.MILLISECONDS );
|
||||
|
Loading…
Reference in New Issue
Block a user