Only allow ServerUnique tab lists as per 1.8 due to incomplete functionality.

This commit is contained in:
md_5 2016-03-02 20:20:46 +11:00
parent fc64a6c2ff
commit 46e7f2dfc9

View File

@ -153,6 +153,7 @@ public final class UserConnection implements ProxiedPlayer
this.displayName = name; this.displayName = name;
/*
switch ( getPendingConnection().getListener().getTabListType() ) switch ( getPendingConnection().getListener().getTabListType() )
{ {
case "GLOBAL": case "GLOBAL":
@ -165,6 +166,8 @@ public final class UserConnection implements ProxiedPlayer
tabListHandler = new GlobalPing( this ); tabListHandler = new GlobalPing( this );
break; break;
} }
*/
tabListHandler = new ServerUnique( this );
Collection<String> g = bungee.getConfigurationAdapter().getGroups( name ); Collection<String> g = bungee.getConfigurationAdapter().getGroups( name );
g.addAll( bungee.getConfigurationAdapter().getGroups( getUniqueId().toString() ) ); g.addAll( bungee.getConfigurationAdapter().getGroups( getUniqueId().toString() ) );