Class CooldownStartEvent

java.lang.Object
org.bukkit.event.Event
com.petarmc.petarlib.cooldowns.CooldownStartEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class CooldownStartEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Called when a cooldown is about to start. Cancel to prevent the cooldown being applied.
  • Constructor Details

    • CooldownStartEvent

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

    • getPlayerId

      public UUID getPlayerId()
    • getCooldownId

      public String getCooldownId()
    • getDurationMillis

      public long getDurationMillis()
    • getEndTimestamp

      public long getEndTimestamp()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

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

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