onlineliste shows newbieStatus + newbiePlayedMinutesThreshold in GlobalHelper
This commit is contained in:
@@ -769,12 +769,12 @@ namespace ReallifeGamemode.Server.Events
|
||||
return new
|
||||
{
|
||||
Id = p.Handle.Value,
|
||||
p.Name,
|
||||
p.Ping,
|
||||
FactionName = u?.Faction?.Name ?? "Zivilist",
|
||||
FactionId = u?.FactionId ?? 0
|
||||
Name = p.Name + (u.PlayedMinutes <= GlobalHelper.newbiePlayedMinutesThreshold ? "<span class=\"player__status\">Neuling</span>" : ""),
|
||||
FactionId = u?.FactionId ?? 0,
|
||||
p.Ping
|
||||
};
|
||||
});
|
||||
|
||||
player.TriggerEvent("showPlayerlist", JsonConvert.SerializeObject(listPlayers));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user