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,16 +24,16 @@ public class ServerUnqiueTabList implements TabListHandler
|
||||
public void onServerChange(UserConnection con)
|
||||
{
|
||||
Set<String> usernames = sentUsernames.get(con);
|
||||
synchronized (usernames)
|
||||
if (usernames != null)
|
||||
{
|
||||
if (usernames != null)
|
||||
{
|
||||
for (String username : usernames)
|
||||
{
|
||||
con.packetQueue.add(new PacketC9PlayerListItem(username, false, 9999));
|
||||
}
|
||||
}
|
||||
usernames.clear();
|
||||
synchronized (usernames)
|
||||
{
|
||||
for (String username : usernames)
|
||||
{
|
||||
con.packetQueue.add(new PacketC9PlayerListItem(username, false, 9999));
|
||||
}
|
||||
usernames.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user