From fba93e560239ec7920394ac6cfd67b1f665f35ac Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 8 Mar 2015 21:24:54 -0600 Subject: [PATCH] Allow server to execute silent specifier Removed erroneous playing command (duplicates /who). Fixes #879 --- TShockAPI/TShock.cs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 1c8177a7..4374c295 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -1132,26 +1132,12 @@ namespace TShockAPI WorldGen.genRand = new Random(); } - if (args.Command.StartsWith("playing") || args.Command.StartsWith("{0}playing".SFormat(Commands.Specifier))) - { - int count = 0; - foreach (TSPlayer player in Players) - { - if (player != null && player.Active) - { - count++; - TSPlayer.Server.SendInfoMessage("{0} ({1}) [{2}] <{3}>", player.Name, player.IP, - player.Group.Name, player.UserAccountName); - } - } - TSPlayer.Server.SendInfoMessage("{0} players connected.", count); - } - else if (args.Command == "autosave") + if (args.Command == "autosave") { Main.autoSave = Config.AutoSave = !Config.AutoSave; Log.ConsoleInfo("AutoSave " + (Config.AutoSave ? "Enabled" : "Disabled")); } - else if (args.Command.StartsWith(Commands.Specifier)) + else if (args.Command.StartsWith(Commands.Specifier) || args.Command.StartsWith(Commands.SilentSpecifier)) { Commands.HandleCommand(TSPlayer.Server, args.Command); }