* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
33 lines
970 B
C#
33 lines
970 B
C#
using Content.Server.Eui;
|
|
using Content.Shared.Administration;
|
|
using Robust.Server.Player;
|
|
using Robust.Shared.Console;
|
|
using Robust.Shared.IoC;
|
|
|
|
#nullable enable
|
|
|
|
namespace Content.Server.Administration.Commands
|
|
{
|
|
[AdminCommand(AdminFlags.Permissions)]
|
|
public sealed class OpenPermissionsCommand : IConsoleCommand
|
|
{
|
|
public string Command => "permissions";
|
|
public string Description => "Opens the admin permissions panel.";
|
|
public string Help => "Usage: permissions";
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
var player = shell.Player as IPlayerSession;
|
|
if (player == null)
|
|
{
|
|
shell.WriteLine("This does not work from the server console.");
|
|
return;
|
|
}
|
|
|
|
var eui = IoCManager.Resolve<EuiManager>();
|
|
var ui = new PermissionsEui();
|
|
eui.OpenEui(ui, player);
|
|
}
|
|
}
|
|
}
|