diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs index adfdc09..c7cbdf3 100644 --- a/Pages/Index.cshtml.cs +++ b/Pages/Index.cshtml.cs @@ -1,4 +1,5 @@ using System; +using System.IO; using System.Collections.Generic; using MySql.Data.MySqlClient; using Microsoft.AspNetCore.Mvc.RazorPages; @@ -113,15 +114,21 @@ namespace NightmareCoreWeb2.Pages } public ActionResult OnGetAlert() { - string ret = ""; + string ret = "SERVERALERT:\n\n
\n"; if (this.OnlineCharacters.Count > 0) { - ret += "SERVERALERT:\nOnline Characters:\n"; - + ret += "{c.Username}: Level {c.Level} {c.GetRace()} {c.GetClass()}, {c.Name}
"; + } } - ret += "\n\r"; + + if (System.IO.File.Exists("announce.html")) { + ret += "