Just use server specific tab lists for now.
This commit is contained in:
parent
6eedc77954
commit
5282a8f45a
@ -91,7 +91,7 @@ public class PlayerListItem extends DefinedPacket
|
||||
if ( protocolVersion < ProtocolConstants.MINECRAFT_SNAPSHOT )
|
||||
{
|
||||
Item item = items[0]; // Only one at a time
|
||||
writeString( TextComponent.toLegacyText( ComponentSerializer.parse( item.displayName ) ), buf );
|
||||
writeString( item.displayName, buf ); // TODO: Server unique only!
|
||||
buf.writeBoolean( action != Action.REMOVE_PLAYER );
|
||||
buf.writeShort( item.ping );
|
||||
} else
|
||||
|
@ -131,7 +131,8 @@ public final class UserConnection implements ProxiedPlayer
|
||||
|
||||
this.displayName = name;
|
||||
|
||||
switch ( getPendingConnection().getListener().getTabListType() )
|
||||
// Blame Mojang for this one
|
||||
/*switch ( getPendingConnection().getListener().getTabListType() )
|
||||
{
|
||||
case "GLOBAL":
|
||||
tabListHandler = new Global( this );
|
||||
@ -142,7 +143,8 @@ public final class UserConnection implements ProxiedPlayer
|
||||
default:
|
||||
tabListHandler = new GlobalPing( this );
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
tabListHandler = new ServerUnique( this );
|
||||
|
||||
Collection<String> g = bungee.getConfigurationAdapter().getGroups( name );
|
||||
for ( String s : g )
|
||||
|
Loading…
Reference in New Issue
Block a user