Class PlayerTokensLostEvent


public final class PlayerTokensLostEvent extends XPrisonPlayerEvent
Event fired when a player loses tokens.
  • 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
    PlayerTokensLostEvent(LostCause cause, org.bukkit.OfflinePlayer player, long amount)
    Constructs a new PlayerTokensLostEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Gets the HandlerList for this event.
    @NotNull org.bukkit.event.HandlerList
    Gets the handler list for this event instance.

    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

    • PlayerTokensLostEvent

      public PlayerTokensLostEvent(LostCause cause, org.bukkit.OfflinePlayer player, long amount)
      Constructs a new PlayerTokensLostEvent.
      Parameters:
      cause - the cause of token loss
      player - the player who lost tokens
      amount - the amount of tokens lost
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the HandlerList for this event.
      Returns:
      the handler list
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Gets the handler list for this event instance.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      the handler list