Class PerkBoostEndEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.perk.PerkBoostEndEvent
Called after a player's temporary boost ended: removed early, such as with
/zx perks clear, or run out.
Main thread. A removal fires on the server that made it. An expiry fires on the server the player is online on as it runs out, or, when it ran out while they were away, on the server they next join. Only fired while a listener is registered.
- Since:
- 1.16.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPerkBoostEndEvent(@NotNull UUID playerId, @NotNull PerkBoost boost, @NotNull PerkBoostEndEvent.Reason reason) -
Method Summary
Modifier and TypeMethodDescription@NotNull PerkBoostgetBoost()@NotNull InstantWhen the boost was due to end; in the past for an expiry.static @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull Optional<org.bukkit.entity.Player> The player, while online on this server.@NotNull UUID@NotNull PerkBoostEndEvent.Reason@NotNull StringWho or what gave the boost.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PerkBoostEndEvent
public PerkBoostEndEvent(@NotNull @NotNull UUID playerId, @NotNull @NotNull PerkBoost boost, @NotNull @NotNull PerkBoostEndEvent.Reason reason)
-
-
Method Details
-
getPlayerId
-
getPlayer
The player, while online on this server. -
getBoost
-
getSource
Who or what gave the boost. -
getExpiresAt
When the boost was due to end; in the past for an expiry. -
getReason
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-