added factionname in online list

This commit is contained in:
2019-09-04 22:45:20 +02:00
parent 03f8cdf9f3
commit 7fb5f3abfa
3 changed files with 4 additions and 3 deletions

View File

@@ -304,7 +304,8 @@ namespace ReallifeGamemode.Server.Events
{
Id = p.Handle.Value,
p.Name,
p.Ping
p.Ping,
fac = p.GetUser().Faction.Name
});
player.TriggerEvent("showPlayerlist", JsonConvert.SerializeObject(listPlayers));
}