Class RtpCooldownExpireEvent

java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.rtp.event.RtpCooldownExpireEvent

public class RtpCooldownExpireEvent extends org.bukkit.event.Event
Fired when a player's RTP cooldown expires.

Observe-only: this event cannot be cancelled.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    RtpCooldownExpireEvent(org.bukkit.entity.Player player, long previousClaimTime)
    Creates a new RTP cooldown expire event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.entity.Player
    Returns the player whose cooldown expired.
    long
    Returns the timestamp the expired cooldown was measured from.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RtpCooldownExpireEvent

      public RtpCooldownExpireEvent(org.bukkit.entity.Player player, long previousClaimTime)
      Creates a new RTP cooldown expire event.
      Parameters:
      player - the player whose cooldown expired
      previousClaimTime - the timestamp the expired cooldown was measured from
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns the player whose cooldown expired.
      Returns:
      the player
    • getPreviousClaimTime

      public long getPreviousClaimTime()
      Returns the timestamp the expired cooldown was measured from.
      Returns:
      previous claim time
    • getHandlers

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

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