Class PostLevelupTeamEvent

java.lang.Object
org.bukkit.event.Event
com.booksaw.betterTeams.customEvents.TeamEvent
com.booksaw.betterTeams.customEvents.post.PostLevelupTeamEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PostLevelupTeamEvent extends TeamEvent
An event which is called after a team's level has been increased. Contains information about the previous and new levels, the cost of the levelup, whether score was used for payment, and the player who initiated the levelup. This event cannot be cancelled since it occurs after the level increase.

To modify or cancel the level up, use LevelupTeamEvent.

Author:
svaningelgem
  • Constructor Details

    • PostLevelupTeamEvent

      public PostLevelupTeamEvent(Team team, int currentLevel, int newLevel, int cost, boolean score, org.bukkit.entity.Player commandSender)
  • Method Details

    • getHandlerList

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

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

      public int getCurrentLevel()
    • getNewLevel

      public int getNewLevel()
    • getCost

      public int getCost()
    • isScore

      public boolean isScore()
    • getCommandSender

      public org.bukkit.entity.Player getCommandSender()