Exemple #1
0
 /// <summary>
 /// Invoke this command.
 /// </summary>
 /// <param name="callerIsAdmin">Is the caller an admin.</param>
 public void Run(bool callerIsAdmin)
 {
     if (LockKey != null)
     {
         if (TimerLocks.Locked(LockKey, LockTimeInSeconds))
         {
             return;
         }
     }
     if (requiresAdminRights && !callerIsAdmin)
     {
         return;
     }
     target.Invoke();
 }