Class PlayerMarketPurchaseEvent

All Implemented Interfaces:
Cancellable

public class PlayerMarketPurchaseEvent extends PlayerMarketEvent implements Cancellable
Called before a Player purchases an item from the Market.
  • Constructor Details

    • PlayerMarketPurchaseEvent

      public PlayerMarketPurchaseEvent(@Nullable @Nullable OfflinePlayer player, @Nullable @Nullable Receipt receipt)
      Constructs a PlayerMarketPurchaseEvent.
      Parameters:
      player - Player Involved
      receipt - Receipt after Purchasing
  • Method Details

    • getReceipt

      @Nullable public @Nullable Receipt getReceipt()
      Fetches the receipt involved in this event.
      Returns:
      Receipt Involved
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface Cancellable