Add reasons to all Disable() usages

This commit is contained in:
Deathmax 2012-01-14 10:40:06 +08:00
parent 7ab577282e
commit 71117ae0b5
3 changed files with 23 additions and 27 deletions

View file

@ -357,12 +357,14 @@ namespace TShockAPI
SendData(PacketTypes.PlayerTeam, "", Index);
}
public virtual void Disable()
public virtual void Disable(string reason = "")
{
LastThreat = DateTime.UtcNow;
SetBuff(33, 330, true); //Weak
SetBuff(32, 330, true); //Slow
SetBuff(23, 330, true); //Cursed
if (!string.IsNullOrEmpty(reason))
Log.ConsoleInfo(string.Format("Player {0} has been disabled for {1}", Name, reason));
}
public virtual void Whoopie(object time)