Esempio n. 1
0
 private string GenerateRecord(JusticeSystem.Report rep)
 {
     if (rep.TargetName.Equals("<unknown>"))
     {
         return(null);
     }
     return(RecordBase.Replace("%username%", rep.TargetName.Replace("<", "").Replace(">", "")));
 }
Esempio n. 2
0
        /// <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);
        }