Files
tbd-station-14/Content.Server/Utility/Commands/EchoCommand.cs
metalgearsloth f110e28021 Fix openahelp and quit command perms (#5763)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
2021-12-12 22:45:49 -07:00

25 lines
709 B
C#

using Content.Server.Administration;
using Content.Shared.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;
}
}
}