Interface CooldownSender
public interface CooldownSender
Sends cooldown messages to players and checks cooldown bypass permissions.
- Since:
- 1.6.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleansendIfCooldown(FEntity entity, Optional<Pair<Cooldown, PermissionSetting>> optionalCooldown, String cooldownOwner) Checks if an entity is on cooldown and sends a cooldown message if applicable.booleansendIfCooldown(FEntity entity, Pair<Cooldown, PermissionSetting> cooldownPermission, String cooldownOwner) Checks if a player is on cooldown and sends a formatted cooldown message.
-
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 checkoptionalCooldown- optional pair of cooldown and permission settingscooldownOwner- 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 checkcooldownPermission- pair of cooldown settings and bypass permissioncooldownOwner- name of the owner that checks cooldown- Returns:
- true if cooldown message was sent, false otherwise
-