Class KitCooldownExpireEvent
java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.kit.event.KitCooldownExpireEvent
public class KitCooldownExpireEvent
extends org.bukkit.event.Event
Fired when a player's kit 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
ConstructorsConstructorDescriptionKitCooldownExpireEvent(org.bukkit.entity.Player player, Kit kit, long previousClaimTime) Creates a new kit cooldown expire event. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListgetKit()Returns the kit.org.bukkit.entity.PlayerReturns the player whose cooldown expired.longReturns the timestamp the expired cooldown was measured from.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
KitCooldownExpireEvent
Creates a new kit cooldown expire event.- Parameters:
player- the player whose cooldown expiredkit- the kitpreviousClaimTime- 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
-
getKit
Returns the kit.- Returns:
- the kit
-
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:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-