Add reasons to all Disable() usages
This commit is contained in:
parent
7ab577282e
commit
71117ae0b5
3 changed files with 23 additions and 27 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue