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)
|
switch (config.tabList)
|
||||||
{
|
{
|
||||||
case 1:
|
default: case 1:
|
||||||
tabListHandler = new GlobalPingTabList();
|
tabListHandler = new GlobalPingTabList();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
@ -24,18 +24,18 @@ public class ServerUnqiueTabList implements TabListHandler
|
|||||||
public void onServerChange(UserConnection con)
|
public void onServerChange(UserConnection con)
|
||||||
{
|
{
|
||||||
Set<String> usernames = sentUsernames.get(con);
|
Set<String> usernames = sentUsernames.get(con);
|
||||||
synchronized (usernames)
|
|
||||||
{
|
|
||||||
if (usernames != null)
|
if (usernames != null)
|
||||||
|
{
|
||||||
|
synchronized (usernames)
|
||||||
{
|
{
|
||||||
for (String username : usernames)
|
for (String username : usernames)
|
||||||
{
|
{
|
||||||
con.packetQueue.add(new PacketC9PlayerListItem(username, false, 9999));
|
con.packetQueue.add(new PacketC9PlayerListItem(username, false, 9999));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
usernames.clear();
|
usernames.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPingChange(UserConnection con, int ping)
|
public void onPingChange(UserConnection con, int ping)
|
||||||
|
Loading…
Reference in New Issue
Block a user