Class RoundEndEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.RoundEndEvent
- All Implemented Interfaces:
- ArenaEvent
Gets called when a game has ended and is about to move into the EndLobby / Resetting state.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Constructor SummaryConstructorsConstructorDescriptionRoundEndEvent(Arena arena, @Nullable Team winnerTeam, Collection<Player> onlineWinners, Collection<QuitPlayerMemory> offlineWinners, Collection<Player> onlineLosers, Collection<QuitPlayerMemory> offlineLosers) RoundEndEvent(Arena arena, @Nullable Team winnerTeam, Map<Player, Team> onlinePlayers, Collection<QuitPlayerMemory> offlinePlayers) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListReturns *all* the online player that lost the round.Returns the offline players that lost the round.Returns the offline players that won the round.Returns the online player that won the round.@Nullable TeamReturns the team that won the round.booleanisTie()Returns if the round has ended as a tie.Methods inherited from class org.bukkit.event.EventgetEventName, isAsynchronousMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEventgetArena
- 
Constructor Details- 
RoundEndEventpublic RoundEndEvent(Arena arena, @Nullable @Nullable Team winnerTeam, Collection<Player> onlineWinners, Collection<QuitPlayerMemory> offlineWinners, Collection<Player> onlineLosers, Collection<QuitPlayerMemory> offlineLosers) 
- 
RoundEndEventpublic RoundEndEvent(Arena arena, @Nullable @Nullable Team winnerTeam, Map<Player, Team> onlinePlayers, Collection<QuitPlayerMemory> offlinePlayers) 
 
- 
- 
Method Details- 
getWinnerTeamReturns the team that won the round.It's nullif no team has won because it ended as a tie.- Returns:
- The team that won
 
- 
isTiepublic boolean isTie()Returns if the round has ended as a tie.- Returns:
- If the round ended as a tie
 
- 
getWinnersReturns 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
 
- 
getQuitWinnersReturns 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
 
- 
getLosersReturns *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
 
- 
getQuitLosersReturns 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- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-