Added /mute command - requires mute permission

This commit is contained in:
darkunderdog 2011-12-24 08:35:08 -06:00
parent 8d84514128
commit 1aed7f4bdb
4 changed files with 58 additions and 7 deletions

View file

@ -558,11 +558,16 @@ namespace TShockAPI
Log.Error(ex.ToString());
}
}
else
else if (!tsplr.mute)
{
TShock.Utils.Broadcast(String.Format(TShock.Config.ChatFormat, tsplr.Group.Name, tsplr.Group.Prefix, tsplr.Name, tsplr.Group.Suffix, text), tsplr.Group.R, tsplr.Group.G, tsplr.Group.B);
e.Handled = true;
}
else if (tsplr.mute)
{
tsplr.SendMessage("You Are Muted! You Need To Be Unmuted!!");
e.Handled = true;
}
}
/// <summary>