Class PerkBoostEndEvent

java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.perk.PerkBoostEndEvent

public final class PerkBoostEndEvent extends ZentrixEvent
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
  • Constructor Details

  • Method Details

    • getPlayerId

      @NotNull public @NotNull UUID getPlayerId()
    • getPlayer

      @NotNull public @NotNull Optional<org.bukkit.entity.Player> getPlayer()
      The player, while online on this server.
    • getBoost

      @NotNull public @NotNull PerkBoost getBoost()
    • getSource

      @NotNull public @NotNull String getSource()
      Who or what gave the boost.
    • getExpiresAt

      @NotNull public @NotNull Instant getExpiresAt()
      When the boost was due to end; in the past for an expiry.
    • getReason

      @NotNull public @NotNull PerkBoostEndEvent.Reason getReason()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: ZentrixEvent
      Gets the handler list for this event.
      Overrides:
      getHandlers in class ZentrixEvent
      Returns:
      The handler list
    • getHandlerList

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