]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove duplicate echo command (#15863)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Fri, 28 Apr 2023 07:09:25 +0000 (19:09 +1200)
committerGitHub <noreply@github.com>
Fri, 28 Apr 2023 07:09:25 +0000 (17:09 +1000)
Content.Server/Utility/Commands/EchoCommand.cs [deleted file]
Resources/Locale/en-US/utility/commands/echo-command.ftl [deleted file]
Resources/clientCommandPerms.yml

diff --git a/Content.Server/Utility/Commands/EchoCommand.cs b/Content.Server/Utility/Commands/EchoCommand.cs
deleted file mode 100644 (file)
index 170a604..0000000
+++ /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 (file)
index f221538..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-echo-command-description = Prints parameter into console
-echo-command-help-text = Usage: {$command} <text>
\ No newline at end of file
index 9c5a55d4039a615aea62017a33d1a6775cdbed8c..1b762ecf0c3aafff4c53666a0f5b20726d0cc8e5 100644 (file)
@@ -1,5 +1,6 @@
 # Available to everybody
 - Commands:
+    - echo
     - disconnect
     - help
     - list