From a0b2e8d50d5b552dd64f18f3aec27e0b3b56e0cf Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Fri, 17 Sep 2021 10:39:55 -0400 Subject: [PATCH] Show GMs differently in Announcements --- Pages/Index.cshtml.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs index 4e040b6..81824f3 100644 --- a/Pages/Index.cshtml.cs +++ b/Pages/Index.cshtml.cs @@ -216,7 +216,12 @@ namespace NightmareCoreWeb2.Pages ret += "

Online Players

\n"; foreach (Character c in OnlineCharacters) { - ret += $"

{c.Username}: Level {c.Level} {c.GetRace()} {c.GetClass()}, {c.Name}

"; + Account a = new Account(c.Username) + if (a.IsGM) { + ret += $"

[GM] {c.Username}: {c.GetRace()} {c.GetClass()}, {c.Name}

"; + } else { + ret += $"

{c.Username}: Level {c.Level} {c.GetRace()} {c.GetClass()}, {c.Name}

"; + } } }