From 0c5d76b86098e5019937e5ef4bb78c2c43ff6451 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 19 Feb 2013 20:12:33 +1100 Subject: [PATCH] Workaround for kicks --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index 4d433791..a305aebd 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -162,7 +162,7 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer } @Override - public void disconnect(String reason) + public synchronized void disconnect(String reason) { if ( clientConnected ) { @@ -509,6 +509,9 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer } continue; } + break; + case 0xFF: + throw new KickException( new PacketFFKick( packet ).message ); } while ( !packetQueue.isEmpty() )