Class ServerBoostEndEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.perk.ServerBoostEndEvent
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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionServerBoostEndEvent(@NotNull ServerBoost boost, @NotNull ServerBoostEndEvent.Reason reason) -
Method Summary
Modifier and TypeMethodDescription@NotNull ServerBoostgetBoost()@NotNull InstantWhen it was due to end.static @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull ServerBoostEndEvent.Reason@NotNull StringWho or what started it.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ServerBoostEndEvent
public ServerBoostEndEvent(@NotNull @NotNull ServerBoost boost, @NotNull @NotNull ServerBoostEndEvent.Reason reason)
-
-
Method Details
-
getBoost
-
getSource
Who or what started it. -
getExpiresAt
When it was due to end. -
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()
-