Class UpgradeBuyEvent
java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.upgrades.UpgradeBuyEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class UpgradeBuyEvent
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
ConstructorDescriptionUpgradeBuyEvent
(TeamUpgrade teamUpgrade, org.bukkit.entity.Player player, ITeam team) Called when a Team Upgrade is bought -
Method Summary
Modifier and TypeMethodDescriptiongetArena()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
Get who bought the upgradegetTeam()
boolean
void
setCancelled
(boolean b) Cancel event.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
UpgradeBuyEvent
Called when a Team Upgrade is bought
-
-
Method Details
-
getArena
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get who bought the upgrade -
getTeam
-
getTeamUpgrade
-
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 b) Cancel event. Purchase will be cancelled.- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-