2023-04-16 23:20:57 -07:00
|
|
|
using Content.Server.EUI;
|
|
|
|
|
using Content.Server.Fax.AdminUI;
|
|
|
|
|
using Content.Shared.Administration;
|
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Administration.Commands;
|
|
|
|
|
|
2024-06-01 04:14:43 -04:00
|
|
|
[AdminCommand(AdminFlags.Fun)]
|
2023-04-16 23:20:57 -07:00
|
|
|
public sealed class FaxUiCommand : IConsoleCommand
|
|
|
|
|
{
|
|
|
|
|
public string Command => "faxui";
|
|
|
|
|
|
|
|
|
|
public string Description => Loc.GetString("cmd-faxui-desc");
|
|
|
|
|
public string Help => Loc.GetString("cmd-faxui-help");
|
|
|
|
|
|
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
|
|
|
{
|
2024-08-11 09:46:57 +00:00
|
|
|
if (shell.Player is not { } player)
|
2023-04-16 23:20:57 -07:00
|
|
|
{
|
2024-08-11 09:46:57 +00:00
|
|
|
shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
|
2023-04-16 23:20:57 -07:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var eui = IoCManager.Resolve<EuiManager>();
|
|
|
|
|
var ui = new AdminFaxEui();
|
|
|
|
|
eui.OpenEui(ui, player);
|
|
|
|
|
}
|
|
|
|
|
}
|