Class ShopBuyEvent
java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.shop.ShopBuyEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class ShopBuyEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionShopBuyEvent
(org.bukkit.entity.Player buyer, IArena arena, ICategoryContent categoryContent) Triggered when a player buys from the shopShopBuyEvent
(org.bukkit.entity.Player buyer, ICategoryContent categoryContent) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetArena()
org.bukkit.entity.Player
getBuyer()
Get the buyerGet the shop category content bought.static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean cancelled)
-
Constructor Details
-
Method Details
-
getArena
-
getBuyer
public org.bukkit.entity.Player getBuyer()Get the buyer -
getCategoryContent
Get the shop category content bought. -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
ShopBuyEvent(Player, IArena, ICategoryContent)