From 93197b6cce69bf380e9807f449c2b1a28d982281 Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Wed, 10 Jul 2024 01:24:38 +0200 Subject: [PATCH] Fix colornetwork desc and help (#29856) * Fix colornetwork description * suggested changes * forgor * done * ok now it IS done --- Content.Server/Sandbox/Commands/ColorNetworkCommand.cs | 10 ++++------ .../Locale/en-US/commands/colornetwork-command.ftl | 3 +++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 Resources/Locale/en-US/commands/colornetwork-command.ftl diff --git a/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs b/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs index d5dca64eaaca9c..1fc207058d8cba 100644 --- a/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs +++ b/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs @@ -9,21 +9,19 @@ namespace Content.Server.Sandbox.Commands { [AnyCommand] - public sealed class ColorNetworkCommand : IConsoleCommand + public sealed class ColorNetworkCommand : LocalizedCommands { [Dependency] private readonly IEntityManager _entManager = default!; - public string Command => "colornetwork"; - public string Description => Loc.GetString("color-network-command-description"); - public string Help => Loc.GetString("color-network-command-help-text", ("command",Command)); + public override string Command => "colornetwork"; - public void Execute(IConsoleShell shell, string argStr, string[] args) + public override void Execute(IConsoleShell shell, string argStr, string[] args) { var sandboxManager = _entManager.System(); var adminManager = IoCManager.Resolve(); if (shell.IsClient && (!sandboxManager.IsSandboxEnabled && !adminManager.HasAdminFlag(shell.Player!, AdminFlags.Mapping))) { - shell.WriteError("You are not currently able to use mapping commands."); + shell.WriteError(Loc.GetString("cmd-colornetwork-no-access")); } if (args.Length != 3) diff --git a/Resources/Locale/en-US/commands/colornetwork-command.ftl b/Resources/Locale/en-US/commands/colornetwork-command.ftl new file mode 100644 index 00000000000000..3fd60bcb89f8b2 --- /dev/null +++ b/Resources/Locale/en-US/commands/colornetwork-command.ftl @@ -0,0 +1,3 @@ +cmd-colornetwork-desc = Paints the atmos devices in the specified color +cmd-colornetwork-help = colornetwork Pipe +cmd-colornetwork-no-access = You are not currently able to use mapping commands.