Rename IConsoleHost.RegisteredCommands (#14041)
This commit is contained in:
@@ -81,7 +81,7 @@ namespace Content.Client.Administration.Managers
|
|||||||
var host = IoCManager.Resolve<IClientConsoleHost>();
|
var host = IoCManager.Resolve<IClientConsoleHost>();
|
||||||
|
|
||||||
// Anything marked as Any we'll just add even if the server doesn't know about it.
|
// Anything marked as Any we'll just add even if the server doesn't know about it.
|
||||||
foreach (var (command, instance) in host.RegisteredCommands)
|
foreach (var (command, instance) in host.AvailableCommands)
|
||||||
{
|
{
|
||||||
if (Attribute.GetCustomAttribute(instance.GetType(), typeof(AnyCommandAttribute)) == null) continue;
|
if (Attribute.GetCustomAttribute(instance.GetType(), typeof(AnyCommandAttribute)) == null) continue;
|
||||||
_availableCommands.Add(command);
|
_availableCommands.Add(command);
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ namespace Content.Server.Administration.Managers
|
|||||||
_netMgr.RegisterNetMessage<MsgUpdateAdminStatus>();
|
_netMgr.RegisterNetMessage<MsgUpdateAdminStatus>();
|
||||||
|
|
||||||
// Cache permissions for loaded console commands with the requisite attributes.
|
// Cache permissions for loaded console commands with the requisite attributes.
|
||||||
foreach (var (cmdName, cmd) in _consoleHost.RegisteredCommands)
|
foreach (var (cmdName, cmd) in _consoleHost.AvailableCommands)
|
||||||
{
|
{
|
||||||
var (isAvail, flagsReq) = GetRequiredFlag(cmd);
|
var (isAvail, flagsReq) = GetRequiredFlag(cmd);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user