Class ServerBoostEndEvent

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

public final class ServerBoostEndEvent extends ZentrixEvent
Called when a server-wide boost stops applying on this server, as its end is announced to the players here. Every server sharing the database fires it for its own players.

Main thread. Only fired while a listener is registered.

Since:
1.16.0
  • Constructor Details

  • Method Details

    • getBoost

      @NotNull public @NotNull ServerBoost getBoost()
    • getSource

      @NotNull public @NotNull String getSource()
      Who or what started it.
    • getExpiresAt

      @NotNull public @NotNull Instant getExpiresAt()
      When it was due to end.
    • getReason

      @NotNull public @NotNull ServerBoostEndEvent.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()