예제 #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);
     }
 }
예제 #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);
     }
 }