Rename tab list classes

This commit is contained in:
md_5 2013-04-26 17:20:03 +10:00
parent 70e10c382e
commit be30c8b89a
4 changed files with 9 additions and 9 deletions

View File

@ -9,9 +9,9 @@ import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.config.ConfigurationAdapter; import net.md_5.bungee.api.config.ConfigurationAdapter;
import net.md_5.bungee.api.config.ListenerInfo; import net.md_5.bungee.api.config.ListenerInfo;
import net.md_5.bungee.api.config.ServerInfo; import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.tablist.GlobalPingTabList; import net.md_5.bungee.tablist.GlobalPing;
import net.md_5.bungee.tablist.GlobalTabList; import net.md_5.bungee.tablist.Global;
import net.md_5.bungee.tablist.ServerUniqueTabList; import net.md_5.bungee.tablist.ServerUnique;
/** /**
* Core configuration for the proxy. * Core configuration for the proxy.
@ -68,13 +68,13 @@ public class Configuration
switch ( tab ) switch ( tab )
{ {
case GLOBAL: case GLOBAL:
ProxyServer.getInstance().setTabListHandler( new GlobalTabList() ); ProxyServer.getInstance().setTabListHandler( new Global() );
break; break;
case GLOBAL_PING: case GLOBAL_PING:
ProxyServer.getInstance().setTabListHandler( new GlobalPingTabList() ); ProxyServer.getInstance().setTabListHandler( new GlobalPing() );
break; break;
case SERVER: case SERVER:
ProxyServer.getInstance().setTabListHandler( new ServerUniqueTabList() ); ProxyServer.getInstance().setTabListHandler( new ServerUnique() );
break; break;
} }

View File

@ -10,7 +10,7 @@ import net.md_5.bungee.api.TabListHandler;
import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.packet.PacketC9PlayerListItem; import net.md_5.bungee.packet.PacketC9PlayerListItem;
public class GlobalTabList implements TabListHandler public class Global implements TabListHandler
{ {
private final Set<ProxiedPlayer> sentPings = Collections.newSetFromMap( new ConcurrentHashMap<ProxiedPlayer, Boolean>() ); private final Set<ProxiedPlayer> sentPings = Collections.newSetFromMap( new ConcurrentHashMap<ProxiedPlayer, Boolean>() );

View File

@ -6,7 +6,7 @@ import net.md_5.bungee.BungeeCord;
import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.packet.PacketC9PlayerListItem; import net.md_5.bungee.packet.PacketC9PlayerListItem;
public class GlobalPingTabList extends GlobalTabList public class GlobalPing extends Global
{ {
private static final int PING_THRESHOLD = 20; private static final int PING_THRESHOLD = 20;

View File

@ -9,7 +9,7 @@ import net.md_5.bungee.api.TabListHandler;
import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.packet.PacketC9PlayerListItem; import net.md_5.bungee.packet.PacketC9PlayerListItem;
public class ServerUniqueTabList implements TabListHandler public class ServerUnique implements TabListHandler
{ {
private final Map<ProxiedPlayer, Set<String>> sentUsernames = new ConcurrentHashMap<>(); private final Map<ProxiedPlayer, Set<String>> sentUsernames = new ConcurrentHashMap<>();