Interface CooldownChecker


public interface CooldownChecker
Decides whether a player is still inside a cooldown window.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    check(UUID playerUUID, Cooldown cooldown, @NonNull String cooldownOwner)
    Checks the cooldown and, when it has run out, starts a new window.
  • Method Details

    • check

      boolean check(UUID playerUUID, Cooldown cooldown, @NonNull String cooldownOwner)
      Checks the cooldown and, when it has run out, starts a new window.
      Parameters:
      playerUUID - the player to check
      cooldown - the cooldown settings
      cooldownOwner - what the cooldown applies to, so separate actions do not share one timer
      Returns:
      true if the player must still wait