From f27f8e9ae7eb3cce3da60297f5e784be4b00354b Mon Sep 17 00:00:00 2001 From: md-5 Date: Sat, 16 Feb 2013 08:53:20 +1100 Subject: [PATCH] Use kick exception to disconnect on login. --- proxy/src/main/java/net/md_5/bungee/InitialHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/InitialHandler.java index 1b0acc9d..35bad5dd 100644 --- a/proxy/src/main/java/net/md_5/bungee/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/InitialHandler.java @@ -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() );