Show GMs differently in Announcements
This commit is contained in:
@ -216,7 +216,12 @@ namespace NightmareCoreWeb2.Pages
|
||||
ret += "<br/><h1 align=\"center\">Online Players</h1>\n";
|
||||
foreach (Character c in OnlineCharacters)
|
||||
{
|
||||
ret += $"<p> <a href=\"https://wotdn.nightmare.haus/?handler=Account&name={c.Username}\">{c.Username}</a>: Level {c.Level} {c.GetRace()} {c.GetClass()}, {c.Name}</p>";
|
||||
Account a = new Account(c.Username)
|
||||
if (a.IsGM) {
|
||||
ret += $"<p>[GM] <a href=\"https://wotdn.nightmare.haus/?handler=Account&name={c.Username}\">{c.Username}</a>: {c.GetRace()} {c.GetClass()}, {c.Name}</p>";
|
||||
} else {
|
||||
ret += $"<p> <a href=\"https://wotdn.nightmare.haus/?handler=Account&name={c.Username}\">{c.Username}</a>: Level {c.Level} {c.GetRace()} {c.GetClass()}, {c.Name}</p>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user