Just use server specific tab lists for now.

This commit is contained in:
md_5 2014-08-31 19:17:23 +10:00
parent 6eedc77954
commit 5282a8f45a
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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 )