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
-
Method Summary
Modifier and TypeMethodDescriptiongetArena()
Returns theArena
that is involved in this event.static HandlerList
@Nullable Team
Returns the winning team of the arena.boolean
isTie()
Returns if the round has ended as a tie.void
setTie()
Sets the round to end as a tie.void
setWinningTeam
(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.
null
if the round ended as a tie
-
getArena
Description copied from interface:ArenaEvent
Returns theArena
that is involved in this event.- Specified by:
getArena
in interfaceArenaEvent
- Returns:
- The arena that is involved
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-