diff --git a/Content.Server/Utility/Commands/EchoCommand.cs b/Content.Server/Utility/Commands/EchoCommand.cs new file mode 100644 index 0000000000..d5761c6ddf --- /dev/null +++ b/Content.Server/Utility/Commands/EchoCommand.cs @@ -0,0 +1,23 @@ +using Content.Server.Administration; +using Robust.Shared.Console; +using Robust.Shared.Localization; + +namespace Content.Server.Utility.Commands +{ + [AnyCommand] + 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)); + return; + } + } +} diff --git a/Resources/Locale/en-US/utility/commands/echo-command.ftl b/Resources/Locale/en-US/utility/commands/echo-command.ftl new file mode 100644 index 0000000000..f221538195 --- /dev/null +++ b/Resources/Locale/en-US/utility/commands/echo-command.ftl @@ -0,0 +1,2 @@ +echo-command-description = Prints parameter into console +echo-command-help-text = Usage: {$command} \ No newline at end of file