Class ArenaWinningTeamDetermineEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaWinningTeamDetermineEvent
- All Implemented Interfaces:
ArenaEvent
Gets called when a match is about to end and the winning team needs to be determined.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Returns theArenathat is involved in this event.static HandlerList@Nullable TeamReturns the winning team of the arena.booleanisTie()Returns if the round has ended as a tie.voidsetTie()Sets the round to end as a tie.voidsetWinningTeam(Team team) Sets the winning team of the arena.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ArenaWinningTeamDetermineEvent
-
-
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()returnsnull.- 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
Sets the winning team of the arena.If the round is a tie, use
setTie()instead.- Parameters:
team- The winning team
-
getWinningTeam
Returns the winning team of the arena.- Returns:
- The winning team.
nullif the round ended as a tie
-
getArena
Description copied from interface:ArenaEventReturns theArenathat is involved in this event.- Specified by:
getArenain interfaceArenaEvent- Returns:
- The arena that is involved
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-