Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 /// <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);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Clears all globally restricted commands. (Doesn't modify Player's own Restriction table)
 /// </summary>
 public void CleanRestrictedConsoleCommands()
 {
     ConsoleCommandCancelList.Clear();
 }