From 3fc699dc566a5891bf2792695d56c78f16d3e008 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Fri, 28 Apr 2023 19:09:25 +1200 Subject: [PATCH] Remove duplicate echo command (#15863) --- .../Utility/Commands/EchoCommand.cs | 21 ------------------- .../en-US/utility/commands/echo-command.ftl | 2 -- Resources/clientCommandPerms.yml | 1 + 3 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 Content.Server/Utility/Commands/EchoCommand.cs delete mode 100644 Resources/Locale/en-US/utility/commands/echo-command.ftl diff --git a/Content.Server/Utility/Commands/EchoCommand.cs b/Content.Server/Utility/Commands/EchoCommand.cs deleted file mode 100644 index 170a604d73..0000000000 --- a/Content.Server/Utility/Commands/EchoCommand.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Content.Shared.Administration; -using Robust.Shared.Console; - -namespace Content.Server.Utility.Commands -{ - [AnyCommand] - sealed class EchoCommand : IConsoleCommand - { - public string Command => "echo"; - - public string Description => Loc.GetString("echo-command-description"); - - public string Help => Loc.GetString("echo-command-help-text", ("command", Command)); - - public void Execute(IConsoleShell shell, string argStr, string[] args) - { - if (argStr.Length > Command.Length) - shell.WriteLine(argStr.Substring(Command.Length + 1)); - } - } -} diff --git a/Resources/Locale/en-US/utility/commands/echo-command.ftl b/Resources/Locale/en-US/utility/commands/echo-command.ftl deleted file mode 100644 index f221538195..0000000000 --- a/Resources/Locale/en-US/utility/commands/echo-command.ftl +++ /dev/null @@ -1,2 +0,0 @@ -echo-command-description = Prints parameter into console -echo-command-help-text = Usage: {$command} \ No newline at end of file diff --git a/Resources/clientCommandPerms.yml b/Resources/clientCommandPerms.yml index 9c5a55d403..1b762ecf0c 100644 --- a/Resources/clientCommandPerms.yml +++ b/Resources/clientCommandPerms.yml @@ -1,5 +1,6 @@ # Available to everybody - Commands: + - echo - disconnect - help - list -- 2.51.2