Remove duplicate echo command (#15863)
This commit is contained in:
parent
5eba1d230a
commit
3fc699dc56
|
|
@ -1,21 +0,0 @@
|
|||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
echo-command-description = Prints parameter into console
|
||||
echo-command-help-text = Usage: {$command} <text>
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
# Available to everybody
|
||||
- Commands:
|
||||
- echo
|
||||
- disconnect
|
||||
- help
|
||||
- list
|
||||
|
|
|
|||
Loading…
Reference in New Issue