Use kick exception to disconnect on login.
This commit is contained in:
parent
7974ccc0bf
commit
f27f8e9ae7
@ -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() );
|
||||
|
Loading…
Reference in New Issue
Block a user