Class PlayerGemsLostEvent


public final class PlayerGemsLostEvent extends XPrisonPlayerEvent
Event that is called when a player loses gems.

This event can be used to track or log gem deductions from players due to specific causes. The amount lost can be modified using #setAmount(long).

  • 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
    PlayerGemsLostEvent(LostCause cause, org.bukkit.OfflinePlayer player, long amount)
    Constructs a new PlayerGemsLostEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Returns the static handler list for this event class.
    @NotNull org.bukkit.event.HandlerList
    Returns the handlers for this specific 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

    • PlayerGemsLostEvent

      public PlayerGemsLostEvent(LostCause cause, org.bukkit.OfflinePlayer player, long amount)
      Constructs a new PlayerGemsLostEvent.
      Parameters:
      cause - the LostCause indicating why the gems are being lost
      player - the OfflinePlayer who is losing gems
      amount - the amount of gems being lost
  • Method Details

    • getHandlerList

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

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