Added silent commands & other stuff (see below)
1. Removed old code. 2. Added silent command prefix & supporting code 3. Region ban & spawnmob support silence
This commit is contained in:
parent
7649718530
commit
f2b2da90d7
3 changed files with 70 additions and 18 deletions
|
|
@ -1049,7 +1049,8 @@ namespace TShockAPI
|
|||
return;
|
||||
}*/
|
||||
|
||||
if (args.Text.StartsWith(Config.CommandSpecifier) && !string.IsNullOrWhiteSpace(args.Text.Substring(1)))
|
||||
if ((args.Text.StartsWith(Config.CommandSpecifier) || args.Text.StartsWith(Config.CommandSilentSpecifier))
|
||||
&& !string.IsNullOrWhiteSpace(args.Text.Substring(1)))
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue