fix onlineliste

This commit is contained in:
hydrant
2021-04-03 22:58:23 +02:00
parent bf41f8faa9
commit b92b4e8b48

View File

@@ -619,7 +619,7 @@ namespace ReallifeGamemode.Server.Events
Id = p.Handle.Value, Id = p.Handle.Value,
p.Name, p.Name,
p.Ping, p.Ping,
FactionName = p.GetUser().Faction?.Name ?? "Zivilist", FactionName = p.GetUser()?.Faction?.Name ?? "Zivilist",
}); });
player.TriggerEvent("showPlayerlist", JsonConvert.SerializeObject(listPlayers)); player.TriggerEvent("showPlayerlist", JsonConvert.SerializeObject(listPlayers));
} }