Files
tbd-station-14/Content.Server/Administration/Commands/FaxUiCommand.cs
Nemanja 68992735d8 Clean up command perms (#28451)
* Change BanExemption command to AdminFlags.Ban permissions

* Change LOOC to check for Moderator permission

* Change ListVerbs from Admin to Debug AdminFlags

* Change RunVerbAs from Admin to Fun AdminFlags

* More permission changes

* Change GhostKick to Moderator perm

* Clean up command perms

* fuck

---------

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
2024-06-01 01:14:43 -07:00

30 lines
813 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 : 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)
{
var player = shell.Player;
if (player == null)
{
shell.WriteLine("shell-only-players-can-run-this-command");
return;
}
var eui = IoCManager.Resolve<EuiManager>();
var ui = new AdminFaxEui();
eui.OpenEui(ui, player);
}
}