Class RoundEndEvent

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

public class RoundEndEvent extends Event implements ArenaEvent
Gets called when a game has ended and is about to move into the EndLobby / Resetting state.
  • Constructor Details

  • Method Details

    • getWinnerTeam

      @Nullable public @Nullable Team getWinnerTeam()
      Returns the team that won the round.

      It's null if no team has won because it ended as a tie.

      Returns:
      The team that won
    • isTie

      public boolean isTie()
      Returns if the round has ended as a tie.
      Returns:
      If the round ended as a tie
    • getWinners

      public Collection<Player> getWinners()
      Returns the online player that won the round.

      The collection is empty when nobody who is online on the server has won or when there was a tie.

      Returns:
      The players that are online and who have won the round
    • getQuitWinners

      public Collection<QuitPlayerMemory> getQuitWinners()
      Returns the offline players that won the round.

      The collection is empty when nobody who is offline has won or when there was a tie.

      Returns:
      All players that are offline and have won the round
    • getLosers

      public Collection<Player> getLosers()
      Returns *all* the online player that lost the round.

      The collection is empty when nobody who is online on the server has lost or when there was a tie.

      Returns:
      The players that are online and who have lost the round
    • getQuitLosers

      public Collection<QuitPlayerMemory> getQuitLosers()
      Returns the offline players that lost the round.

      The collection is empty when nobody who is offline has lost or when there was a tie.

      Returns:
      All players that are offline and have lost the round
    • getHandlers

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

      public static HandlerList getHandlerList()