geforkt von SteamWar/BungeeCore
Fix server order
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
994f758d7c
Commit
8c3df0e1dd
@ -12,6 +12,9 @@ public class TablistNameHandler implements SpigotHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void handle(ByteArrayDataInput byteArrayDataInput) {
|
public void handle(ByteArrayDataInput byteArrayDataInput) {
|
||||||
ProxiedPlayer player = ProxyServer.getInstance().getPlayer(SteamwarUser.get(byteArrayDataInput.readInt()).getUuid());
|
ProxiedPlayer player = ProxyServer.getInstance().getPlayer(SteamwarUser.get(byteArrayDataInput.readInt()).getUuid());
|
||||||
Subserver.getSubserver(player).getTablistNames().put(player, byteArrayDataInput.readUTF());
|
Subserver subserver = Subserver.getSubserver(player.getServer().getInfo());
|
||||||
|
if(subserver == null)
|
||||||
|
return;
|
||||||
|
subserver.getTablistNames().put(player, byteArrayDataInput.readUTF());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren