Files
tbd-station-14/Content.Server/Administration/Commands/FaxUiCommand.cs
Kyle Tyo 57babe15ee Command resolve mega pr 6 (#38398)
commit progress
2025-06-17 19:22:03 +02:00

27 lines
733 B
C#

using Content.Server.EUI;
using Content.Server.Fax.AdminUI;
using Content.Shared.Administration;
using Robust.Shared.Console;
namespace Content.Server.Administration.Commands;
[AdminCommand(AdminFlags.Fun)]
public sealed class FaxUiCommand : LocalizedEntityCommands
{
[Dependency] private readonly EuiManager _euiManager = default!;
public override string Command => "faxui";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (shell.Player is not { } player)
{
shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
return;
}
var ui = new AdminFaxEui();
_euiManager.OpenEui(ui, player);
}
}