From 93959cab4b8f9a63e04efcd610c1d3044008f9cf Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sun, 10 May 2015 22:51:14 +0100 Subject: [PATCH] Only force remove the player from 1.8 client's tab list --- .../java/net/md_5/bungee/connection/UpstreamBridge.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java index 2b58cc29..13637df5 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java @@ -13,6 +13,7 @@ import net.md_5.bungee.api.event.TabCompleteEvent; import net.md_5.bungee.netty.ChannelWrapper; import net.md_5.bungee.netty.PacketHandler; import net.md_5.bungee.protocol.PacketWrapper; +import net.md_5.bungee.protocol.ProtocolConstants; import net.md_5.bungee.protocol.packet.KeepAlive; import net.md_5.bungee.protocol.packet.Chat; import net.md_5.bungee.protocol.packet.PlayerListItem; @@ -73,7 +74,10 @@ public class UpstreamBridge extends PacketHandler } ); for ( ProxiedPlayer player : con.getServer().getInfo().getPlayers() ) { - player.unsafe().sendPacket( packet ); + if ( player.getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_8 ) + { + player.unsafe().sendPacket( packet ); + } } con.getServer().disconnect( "Quitting" ); }