2021-11-26 22:43:49 -08:00
|
|
|
|
using Content.Server.Administration;
|
|
|
|
|
|
using Content.Shared.Administration;
|
|
|
|
|
|
using Content.Shared.Roles;
|
|
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Roles
|
|
|
|
|
|
{
|
2022-09-14 17:02:38 -07:00
|
|
|
|
[AdminCommand(AdminFlags.Admin)]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class ListRolesCommand : IConsoleCommand
|
2021-11-26 22:43:49 -08:00
|
|
|
|
{
|
|
|
|
|
|
public string Command => "listroles";
|
|
|
|
|
|
|
|
|
|
|
|
public string Description => "Lists roles";
|
|
|
|
|
|
|
|
|
|
|
|
public string Help => "listroles";
|
|
|
|
|
|
|
|
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (args.Length != 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
shell.WriteLine("Expected no arguments.");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var prototypeManager = IoCManager.Resolve<IPrototypeManager>();
|
|
|
|
|
|
foreach(var job in prototypeManager.EnumeratePrototypes<JobPrototype>())
|
|
|
|
|
|
{
|
|
|
|
|
|
shell.WriteLine(job.ID);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|