mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
24 lines
629 B
C#
24 lines
629 B
C#
using Content.Server.Administration.Managers;
|
|
using Content.Shared.Administration;
|
|
using Robust.Shared.Player;
|
|
using Robust.Shared.Toolshed;
|
|
|
|
namespace Content.Server.Administration.Toolshed;
|
|
|
|
[ToolshedCommand, AdminCommand(AdminFlags.Admin)]
|
|
public sealed partial class AdminsCommand : ToolshedCommand
|
|
{
|
|
[Dependency] private IAdminManager _admin = default!;
|
|
|
|
[CommandImplementation("active")]
|
|
public IEnumerable<ICommonSession> Active()
|
|
{
|
|
return _admin.ActiveAdmins;
|
|
}
|
|
|
|
[CommandImplementation("all")]
|
|
public IEnumerable<ICommonSession> All()
|
|
{
|
|
return _admin.AllAdmins;
|
|
}
|
|
}
|