]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Rename IConsoleHost.RegisteredCommands (#14041)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Sun, 12 Feb 2023 16:51:56 +0000 (05:51 +1300)
committerGitHub <noreply@github.com>
Sun, 12 Feb 2023 16:51:56 +0000 (16:51 +0000)
Content.Client/Administration/Managers/ClientAdminManager.cs
Content.Server/Administration/Managers/AdminManager.cs

index 89c47a8aebaaa89575983f7ea61d13dc1e2e6e5c..b5c80e6b80635c3240e4ef209307835c8adb8706 100644 (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);
index 1f545b08c660995c93b90bdf435c04e9358bae0b..563fb340024ddf6da7eb299a6639cae75122dfdc 100644 (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);