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
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionShopBuyEvent
(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) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ShopBuyEvent
Deprecated.Triggered when a player buys from the shop -
ShopBuyEvent
Triggered when a player buys from the shop
-
-
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)