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:
Lucas Nicodemus 2015-02-24 20:55:59 -07:00
parent 7649718530
commit f2b2da90d7
3 changed files with 70 additions and 18 deletions

View file

@ -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
{