/// <summary> /// Unregisters a command (chat + console) /// </summary> /// <param name="cmd"></param> public void UnregisterCommand(string cmd) { if (cmdSystem == null) { return; } logger.Write(LogType.Debug, "Covalence is unregistering command '{0}'!", cmd); cmdSystem.UnregisterCommand(cmd, CommandType.Chat); cmdSystem.UnregisterCommand(cmd, CommandType.Console); }
public void UnregisterCommand(string command, Plugin plugin) { ICommandSystem commandSystem = this.cmdSystem; if (commandSystem == null) { return; } commandSystem.UnregisterCommand(command, plugin); }
/// <summary> /// Unregisters a command (chat + console) /// </summary> /// <param name="command"></param> public void UnregisterCommand(string command) => cmdSystem?.UnregisterCommand(command);
/// <summary> /// Unregisters a command (chat + console) /// </summary> /// <param name="command"></param> /// <param name="plugin"></param> public void UnregisterCommand(string command, Plugin plugin) => cmdSystem?.UnregisterCommand(command, plugin);