Exemplo n.º 1
0
 /// <summary>
 /// Sets the player's DonatorTier to the specified tier and creates a new message in their logs informing them such.
 /// </summary>
 /// <param name="tier">The new tier to set the player to</param>
 public void SetTier(int tier)
 {
     DonatorLevel = tier;
     if (tier > 0)
     {
         PlayerLogs.Add(PlayerLog.Create(this, "<b>An admin has set your donator status to Tier " + tier + ".  <span class='good'>Thank you for supporting Transformania Time!</span></b>", DateTime.UtcNow, true));
     }
     else
     {
         PlayerLogs.Add(PlayerLog.Create(this, "<b>An admin has set your donator status to Tier " + tier + ".</b>", DateTime.UtcNow, true));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a new player log message of specified importance
 /// </summary>
 /// <param name="logMessage">The log message visible to the player</param>
 /// <param name="isImportant">Whether or not the log is important and should continually appear in the player's logs until dismissed.</param>
 public void AddLog(string logMessage, bool isImportant)
 {
     PlayerLogs.Add(PlayerLog.Create(this, logMessage, DateTime.UtcNow, isImportant));
 }