Files
tbd-station-14/Content.Server/Utility/Commands/EchoCommand.cs
2023-01-19 13:56:45 +11:00

22 lines
627 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));
}
}
}