Class ServerBoostStartEvent

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

public final class ServerBoostStartEvent extends ZentrixEvent
Called when a server-wide boost starts applying on this server, as it is announced to the players here: on the server that started it at once, and on the others sharing its database as they read it, within half a minute. Boosts already running when Zentrix starts do not fire it.

Main thread. Only fired while a listener is registered.

Since:
1.16.0
  • Constructor Details

    • ServerBoostStartEvent

      public ServerBoostStartEvent(@NotNull @NotNull ServerBoost boost)
  • 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 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()