Only force remove the player from 1.8 client's tab list
This commit is contained in:
parent
585ab4f453
commit
93959cab4b
@ -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;
|
||||
@ -72,9 +73,12 @@ public class UpstreamBridge extends PacketHandler
|
||||
item
|
||||
} );
|
||||
for ( ProxiedPlayer player : con.getServer().getInfo().getPlayers() )
|
||||
{
|
||||
if ( player.getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_8 )
|
||||
{
|
||||
player.unsafe().sendPacket( packet );
|
||||
}
|
||||
}
|
||||
con.getServer().disconnect( "Quitting" );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user