private string GenerateRecord(JusticeSystem.Report rep) { if (rep.TargetName.Equals("<unknown>")) { return(null); } return(RecordBase.Replace("%username%", rep.TargetName.Replace("<", "").Replace(">", ""))); }
/// <summary> /// Removes a player from the hall of shame. /// </summary> /// <param name="report"></param> public void RemoveReport(JusticeSystem.Report report) { var rec = GenerateRecord(report); if (string.IsNullOrEmpty(rec)) { return; } Html.RemoveRecord(rec); }