Class PlayerMultiplierReceiveEvent
java.lang.Object
org.bukkit.event.Event
dev.drawethree.xprison.api.shared.events.XPrisonEvent
dev.drawethree.xprison.api.shared.events.player.XPrisonPlayerEvent
dev.drawethree.xprison.api.multipliers.events.PlayerMultiplierReceiveEvent
Event called when a player receives a multiplier.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
Fields inherited from class dev.drawethree.xprison.api.shared.events.player.XPrisonPlayerEvent
player
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerMultiplierReceiveEvent
(org.bukkit.entity.Player player, double multiplier, TimeUnit timeUnit, long duration, MultiplierType type) Constructs a new PlayerMultiplierReceiveEvent. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Gets the list of handlers listening to this event.@NotNull org.bukkit.event.HandlerList
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerMultiplierReceiveEvent
public PlayerMultiplierReceiveEvent(org.bukkit.entity.Player player, double multiplier, TimeUnit timeUnit, long duration, MultiplierType type) Constructs a new PlayerMultiplierReceiveEvent.- Parameters:
player
- the player receiving the multipliermultiplier
- the multiplier valuetimeUnit
- the unit of time for the multiplier durationduration
- the duration of the multipliertype
- the type of multiplier (e.g., SELL, TOKENS)
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Gets the list of handlers listening to this event.- Returns:
- the handler list
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-