Files
tbd-station-14/Content.Server/Utility/Commands/EchoCommand.cs
2022-05-13 17:59:03 +10:00

23 lines
645 B
C#

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));
return;
}
}
}