Don't send a kick to the server on disconnect

This was dropped from the protocol in 1.6 and was left in bungee by
mistake
This commit is contained in:
Thinkofdeath 2015-05-08 19:39:22 +01:00
parent 88e71ead05
commit f9773a69c3

View File

@ -53,18 +53,9 @@ public class ServerConnection implements Server
public synchronized void disconnect(BaseComponent... reason) public synchronized void disconnect(BaseComponent... reason)
{ {
if ( !ch.isClosed() ) if ( !ch.isClosed() )
{
// TODO: Can we just use a future here?
unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
ch.getHandle().eventLoop().schedule( new Runnable()
{
@Override
public void run()
{ {
ch.getHandle().close(); ch.getHandle().close();
} }
}, 100, TimeUnit.MILLISECONDS );
}
} }