Example #1
0
 public bool TryCooldown(string key, int value)
 {
     if (!Cooldowns.ContainsKey(key) || Cooldowns[key] <= 0)
     {
         Cooldowns.SetOrAdd(key, value);
         return(true);
     }
     return(false);
 }