Rename IConsoleHost.RegisteredCommands (#14041)

This commit is contained in:
Leon Friedrich
2023-02-13 05:51:56 +13:00
committed by GitHub
parent 43f71aaee6
commit 69b5562718
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ namespace Content.Client.Administration.Managers
var host = IoCManager.Resolve<IClientConsoleHost>();
// 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;
_availableCommands.Add(command);

View File

@@ -169,7 +169,7 @@ namespace Content.Server.Administration.Managers
_netMgr.RegisterNetMessage<MsgUpdateAdminStatus>();
// 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);