Interface CooldownSender


public interface CooldownSender
Sends cooldown messages to players and checks cooldown bypass permissions.
Since:
1.6.0
  • Method Details

    • sendIfCooldown

      boolean sendIfCooldown(FEntity entity, Optional<Pair<Cooldown, PermissionSetting>> optionalCooldown, String cooldownOwner)
      Checks if an entity is on cooldown and sends a cooldown message if applicable. Only sends messages to players, not other entities.
      Parameters:
      entity - the entity to check
      optionalCooldown - optional pair of cooldown and permission settings
      cooldownOwner - name of the owner that checks cooldown
      Returns:
      true if cooldown message was sent, false otherwise
    • sendIfCooldown

      boolean sendIfCooldown(FEntity entity, Pair<Cooldown, PermissionSetting> cooldownPermission, String cooldownOwner)
      Checks if a player is on cooldown and sends a formatted cooldown message.
      Parameters:
      entity - the entity to check
      cooldownPermission - pair of cooldown settings and bypass permission
      cooldownOwner - name of the owner that checks cooldown
      Returns:
      true if cooldown message was sent, false otherwise