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 Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionRoundEndEvent
(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 Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Returns *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 Team
Returns the team that won the round.boolean
isTie()
Returns if the round has ended as a tie.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
Methods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArena
-
Constructor Details
-
RoundEndEvent
public RoundEndEvent(Arena arena, @Nullable @Nullable Team winnerTeam, Collection<Player> onlineWinners, Collection<QuitPlayerMemory> offlineWinners, Collection<Player> onlineLosers, Collection<QuitPlayerMemory> offlineLosers) -
RoundEndEvent
public RoundEndEvent(Arena arena, @Nullable @Nullable Team winnerTeam, Map<Player, Team> onlinePlayers, Collection<QuitPlayerMemory> offlinePlayers)
-
-
Method Details
-
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
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
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
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
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
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-