Added /mute command - requires mute permission
This commit is contained in:
parent
8d84514128
commit
1aed7f4bdb
4 changed files with 58 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue