Class LazyCooldown

java.lang.Object
org.kingdoms.utils.cooldown.LazyCooldown

public final class LazyCooldown extends Object
A simple cooldown system using Cache. Expired cooldowns will be automatically removed.
  • Constructor Details

    • LazyCooldown

      public LazyCooldown(Object id, String name, long time, TimeUnit timeUnit)
      Starts a new cooldown for the given ID with the name.
      Parameters:
      id - the ID of the entity.
      name - the cooldown's name.
      time - the time in milliseconds.
    • LazyCooldown

      public LazyCooldown(Object id, String name, long time)
  • Method Details