SteamWar/BungeeCore
Archiviert
13
2

HotFix Tablistpart
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-02-17 17:08:59 +01:00
Ursprung e26ee5f389
Commit a0dd4f5c57

Datei anzeigen

@ -38,7 +38,11 @@ interface TablistPart {
class Item { class Item {
public static Property[] playerProperties(ProxiedPlayer player) { public static Property[] playerProperties(ProxiedPlayer player) {
return ((InitialHandler) player.getPendingConnection()).getLoginProfile().getProperties(); InitialHandler handler = (InitialHandler) player.getPendingConnection();
if(handler == null)
return new Property[0];
return handler.getLoginProfile().getProperties();
} }
private final UUID uuid; private final UUID uuid;