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
  • Constructor Details

    • UpgradeBuyEvent

      public UpgradeBuyEvent(TeamUpgrade teamUpgrade, org.bukkit.entity.Player player, ITeam team)
      Called when a Team Upgrade is bought
  • Method Details

    • getArena

      public IArena getArena()
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get who bought the upgrade
    • getTeam

      public ITeam getTeam()
    • getTeamUpgrade

      public TeamUpgrade getTeamUpgrade()
    • getHandlers

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

      public static org.bukkit.event.HandlerList getHandlerList()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean b)
      Cancel event. Purchase will be cancelled.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable