Class UpgradeBuyEvent


  • public class UpgradeBuyEvent
    extends org.bukkit.event.Event
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • Constructor Summary

      Constructors 
      Constructor Description
      UpgradeBuyEvent​(ITeamUpgrade teamUpgrade, org.bukkit.entity.Player player, IUpgradeTier tierBought, int tierLevel)
      Called when a Team Upgrade is bought
    • Method Summary

      Modifier and Type Method Description
      static org.bukkit.event.HandlerList getHandlerList()  
      org.bukkit.event.HandlerList getHandlers()  
      org.bukkit.entity.Player getPlayer()
      Get who bought the upgrade
      ITeamUpgrade getTeamUpgrade()
      Get stuff about team upgrade
      IUpgradeTier getTierBought()
      Get the bought tier
      int getTierLevel()
      Ge the tier level Ex: Tier 3
      • Methods inherited from class org.bukkit.event.Event

        getEventName, isAsynchronous
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UpgradeBuyEvent

        public UpgradeBuyEvent​(ITeamUpgrade teamUpgrade,
                               org.bukkit.entity.Player player,
                               IUpgradeTier tierBought,
                               int tierLevel)
        Called when a Team Upgrade is bought
    • Method Detail

      • getTierLevel

        public int getTierLevel()
        Ge the tier level Ex: Tier 3
      • getTeamUpgrade

        public ITeamUpgrade getTeamUpgrade()
        Get stuff about team upgrade
      • getPlayer

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

        public IUpgradeTier getTierBought()
        Get the bought tier
      • getHandlers

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

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