/// <summary> /// UnRestricts the specified command globally. (Doesn't modify Player's own Restriction table) /// </summary> /// <param name="cmd"></param> public void UnRestrictConsoleCommand(string cmd) { if (ConsoleCommandCancelList.Contains(cmd)) { ConsoleCommandCancelList.Remove(cmd); } }
/// <summary> /// Restricts the specified command globally. (Doesn't modify Player's own Restriction table) /// </summary> /// <param name="cmd"></param> public void RestrictConsoleCommand(string cmd) { if (!ConsoleCommandCancelList.Contains(cmd)) { ConsoleCommandCancelList.Add(cmd); } }
/// <summary> /// Clears all globally restricted commands. (Doesn't modify Player's own Restriction table) /// </summary> public void CleanRestrictedConsoleCommands() { ConsoleCommandCancelList.Clear(); }