Class PerkBoostGrantEvent

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

public final class PerkBoostGrantEvent extends ZentrixEvent
Called after a player was given a temporary boost and it was stored.

Main thread, on the server that gave it; the player may be offline. Only fired while a listener is registered.

Since:
1.16.0
  • Constructor Details

    • PerkBoostGrantEvent

      public PerkBoostGrantEvent(@NotNull @NotNull UUID playerId, @NotNull @NotNull PerkBoost boost)
  • 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 it.
    • getExpiresAt

      @NotNull public @NotNull Instant getExpiresAt()
      When it ends.
    • 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()