/// <summary> /// Initializes the command system /// </summary> public RustLegacyCommandSystem() { registeredCommands = new Dictionary <string, CommandCallback>(); commandHandler = new CommandHandler(ChatCommandCallback, registeredCommands.ContainsKey); consolePlayer = new RustLegacyConsolePlayer(); }
/// <summary> /// Initializes the command system provider /// </summary> private void Initialize() { registeredCommands = new Dictionary <string, CommandCallback>(); chatCommandHandler = new ChatCommandHandler(ChatCommandCallback, registeredCommands.ContainsKey); consolePlayer = new RustLegacyConsolePlayer(); }