Class PlayerMultiplierReceiveEvent

java.lang.Object
org.bukkit.event.Event

public final class PlayerMultiplierReceiveEvent extends XPrisonPlayerEvent
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

    Constructors
    Constructor
    Description
    PlayerMultiplierReceiveEvent(org.bukkit.entity.Player player, double multiplier, TimeUnit timeUnit, long duration, MultiplierType type)
    Constructs a new PlayerMultiplierReceiveEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 multiplier
      multiplier - the multiplier value
      timeUnit - the unit of time for the multiplier duration
      duration - the duration of the multiplier
      type - 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 class org.bukkit.event.Event