mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 11:15:47 +01:00
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 );
|
ProxyServer.getInstance().getPluginManager().callEvent( event );
|
||||||
if ( event.isCancelled() )
|
if ( event.isCancelled() )
|
||||||
{
|
{
|
||||||
disconnect( event.getCancelReason() );
|
throw new KickException( event.getCancelReason() );
|
||||||
}
|
}
|
||||||
|
|
||||||
stream.write( new PacketFCEncryptionResponse() );
|
stream.write( new PacketFCEncryptionResponse() );
|
||||||
|
Loading…
Reference in New Issue
Block a user