Class XPrisonAutoSellEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class XPrisonAutoSellEvent extends XPrisonPlayerEvent implements org.bukkit.event.Cancellable
Event called when mined blocks are automatically sold.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    XPrisonAutoSellEvent(org.bukkit.entity.Player player, SellRegion reg, Map<AutoSellItemStack,Double> itemsToSell)
    Constructs a new auto-sell event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Returns the list of registered event handlers.
    org.bukkit.event.HandlerList
    Returns the list of registered event handlers.

    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

    Methods inherited from interface org.bukkit.event.Cancellable

    isCancelled, setCancelled
  • Constructor Details

    • XPrisonAutoSellEvent

      public XPrisonAutoSellEvent(org.bukkit.entity.Player player, SellRegion reg, Map<AutoSellItemStack,Double> itemsToSell)
      Constructs a new auto-sell event.
      Parameters:
      player - The player who mined the blocks and triggered auto-sell
      reg - The sell region where the blocks were mined
      itemsToSell - A map of items to be sold with their respective prices
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns the list of registered event handlers.
      Returns:
      HandlerList for this event
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Returns the list of registered event handlers.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      HandlerList for this event