Class CooldownEndEvent

java.lang.Object
org.bukkit.event.Event
com.petarmc.petarlib.cooldowns.CooldownEndEvent

public class CooldownEndEvent extends org.bukkit.event.Event
Called when a cooldown expires or is cleaned up. Not cancellable.
  • Constructor Details

    • CooldownEndEvent

      public CooldownEndEvent(UUID playerId, String cooldownId, long endTimestamp)
  • Method Details

    • getPlayerId

      public UUID getPlayerId()
      Returns:
      UUID of the player whose cooldown ended
    • getCooldownId

      public String getCooldownId()
      Returns:
      cooldown identifier
    • getEndTimestamp

      public long getEndTimestamp()
      Returns:
      epoch millis when the cooldown ended
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()