Use kick exception to disconnect on login.

This commit is contained in:
md-5 2013-02-16 08:53:20 +11:00
parent 7974ccc0bf
commit f27f8e9ae7

View File

@ -139,7 +139,7 @@ public class InitialHandler extends PacketHandler implements Runnable, PendingCo
ProxyServer.getInstance().getPluginManager().callEvent( event );
if ( event.isCancelled() )
{
disconnect( event.getCancelReason() );
throw new KickException( event.getCancelReason() );
}
stream.write( new PacketFCEncryptionResponse() );