Class BedwarsUpgradeBoughtEvent

java.lang.Object
org.bukkit.event.Event
org.screamingsandals.bedwars.api.events.BedwarsUpgradeBoughtEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class BedwarsUpgradeBoughtEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Constructor Details

    • BedwarsUpgradeBoughtEvent

      public BedwarsUpgradeBoughtEvent(Game game, UpgradeStorage storage, List<Upgrade> upgrades, org.bukkit.entity.Player customer, double addLevels)
      Parameters:
      game -
      storage -
      upgrades -
      customer -
      addLevels -
  • Method Details

    • getHandlerList

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

      public Game getGame()
      Returns:
      game
    • getHandlers

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

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

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

      public List<Upgrade> getUpgrades()
      Returns:
      list of upgrades
    • getCustomer

      public org.bukkit.entity.Player getCustomer()
      Returns:
      customer
    • getAddLevels

      public double getAddLevels()
      Returns:
      addition
    • getStorage

      public UpgradeStorage getStorage()
      Returns:
      storage for these upgrades type