Skip to content

Commit

Permalink
Fix Console Command Constructor
Browse files Browse the repository at this point in the history
- Fixes constructor for registering console commands
  • Loading branch information
data-bomb committed Mar 23, 2024
1 parent bc3a26c commit c21d80b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Si_AdminMod/AdminMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static void RegisterAdminCommand(String adminCommand, HelperMethods.Comma
string consoleCommandText = "sam_" + thisCommand.AdminCommandText;

// TODO: Convert AdminPower to server admin system
DebugConsole.ICommand addAdminConsoleCmd = (DebugConsole.ICommand)Activator.CreateInstance(typeof(CSAM_ConsoleCommand), consoleCommandText, thisCommand.AdminCommandDescription);
DebugConsole.ICommand addAdminConsoleCmd = (DebugConsole.ICommand)Activator.CreateInstance(typeof(CSAM_ConsoleCommand), consoleCommandText, thisCommand.AdminCommandDescription, EAdminLevel.STANDARD);
if (addAdminConsoleCmd != null)
{
Dictionary<string, DebugConsole.ICommand> s_Commands = (Dictionary<string, DebugConsole.ICommand>)commandField.GetValue(null);
Expand Down
2 changes: 1 addition & 1 deletion Si_AdminMod/Console_PlayerCmds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class CSAM_ConsoleCommand : DebugConsole.ICommand
private string _description = null!;
private EAdminLevel? _level = null!;

public CSAM_ConsoleCommand(string keyName, string description, EAdminLevel? level)
public CSAM_ConsoleCommand(string keyName, string description, EAdminLevel level)
{
_key = keyName;
_description = description;
Expand Down

0 comments on commit c21d80b

Please sign in to comment.