2021-11-14 17:29:07 +01:00
|
|
|
|
using Content.Server.Administration;
|
2021-12-13 16:45:49 +11:00
|
|
|
|
using Content.Shared.Administration;
|
2021-11-14 17:29:07 +01:00
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
using Robust.Shared.Localization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Utility.Commands
|
|
|
|
|
|
{
|
|
|
|
|
|
[AnyCommand]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
sealed class EchoCommand : IConsoleCommand
|
2021-11-14 17:29:07 +01:00
|
|
|
|
{
|
|
|
|
|
|
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;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|