Class ArenaWinningTeamDetermineEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaWinningTeamDetermineEvent
All Implemented Interfaces:
ArenaEvent

public class ArenaWinningTeamDetermineEvent extends Event implements ArenaEvent
Gets called when a match is about to end and the winning team needs to be determined.
  • Constructor Details

    • ArenaWinningTeamDetermineEvent

      public ArenaWinningTeamDetermineEvent(Arena arena, @Nullable @Nullable Team winningTeam)
  • Method Details

    • isTie

      public boolean isTie()
      Returns if the round has ended as a tie.

      A round is considered a tie if no team has won and getWinningTeam() returns null.

      Returns:
      If the round ended as a tie
    • setTie

      public void setTie()
      Sets the round to end as a tie.

      This will set the winning team to null.

    • setWinningTeam

      public void setWinningTeam(Team team)
      Sets the winning team of the arena.

      If the round is a tie, use setTie() instead.

      Parameters:
      team - The winning team
    • getWinningTeam

      @Nullable public @Nullable Team getWinningTeam()
      Returns the winning team of the arena.
      Returns:
      The winning team. null if the round ended as a tie
    • getArena

      public Arena getArena()
      Description copied from interface: ArenaEvent
      Returns the Arena that is involved in this event.
      Specified by:
      getArena in interface ArenaEvent
      Returns:
      The arena that is involved
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()