Skip to content

Commit

Permalink
Fix colornetwork desc and help (space-wizards#29856)
Browse files Browse the repository at this point in the history
* Fix colornetwork description

* suggested changes

* forgor

* done

* ok now it IS done
  • Loading branch information
lzk228 authored Jul 9, 2024
1 parent edf8c6c commit 93197b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Content.Server/Sandbox/Commands/ColorNetworkCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SandboxSystem>();
var adminManager = IoCManager.Resolve<IAdminManager>();
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)
Expand Down
3 changes: 3 additions & 0 deletions Resources/Locale/en-US/commands/colornetwork-command.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cmd-colornetwork-desc = Paints the atmos devices in the specified color
cmd-colornetwork-help = colornetwork <uid> Pipe <HexColor>
cmd-colornetwork-no-access = You are not currently able to use mapping commands.

0 comments on commit 93197b6

Please sign in to comment.