Fix to issue #28 and also added a default case to tab list.
This commit is contained in:
parent
2c1d7b34e6
commit
5ecbd4b2bc
@ -165,7 +165,7 @@ public class BungeeCord
|
||||
|
||||
switch (config.tabList)
|
||||
{
|
||||
case 1:
|
||||
default: case 1:
|
||||
tabListHandler = new GlobalPingTabList();
|
||||
break;
|
||||
case 2:
|
||||
|
@ -24,18 +24,18 @@ public class ServerUnqiueTabList implements TabListHandler
|
||||
public void onServerChange(UserConnection con)
|
||||
{
|
||||
Set<String> usernames = sentUsernames.get(con);
|
||||
synchronized (usernames)
|
||||
{
|
||||
if (usernames != null)
|
||||
{
|
||||
synchronized (usernames)
|
||||
{
|
||||
for (String username : usernames)
|
||||
{
|
||||
con.packetQueue.add(new PacketC9PlayerListItem(username, false, 9999));
|
||||
}
|
||||
}
|
||||
usernames.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPingChange(UserConnection con, int ping)
|
||||
|
Loading…
Reference in New Issue
Block a user