Class XPrisonSellAllEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class XPrisonSellAllEvent extends XPrisonPlayerEvent implements org.bukkit.event.Cancellable
Event called when a player uses the /sellall command to sell multiple items at once.
  • Nested Class Summary

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

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

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

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Gets the list of event handlers.
    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

    Methods inherited from interface org.bukkit.event.Cancellable

    isCancelled, setCancelled
  • Constructor Details

    • XPrisonSellAllEvent

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

    • getHandlerList

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

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event