public class MatchEndEvent extends MatchEvent
Match
is ending.
Note: Match.isFinished()
will return true only after this event is called.Modifier and Type | Class and Description |
---|---|
static class |
MatchEndEvent.Reason |
Constructor and Description |
---|
MatchEndEvent(Match match,
java.util.UUID winner,
java.util.UUID loser,
MatchEndEvent.Reason reason) |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
java.util.UUID |
getLoser()
Loser of the
Match . |
MatchEndEvent.Reason |
getReason()
End reason of the
Match . |
java.util.UUID |
getWinner()
Winner of the
Match . |
getMatch
public MatchEndEvent(@NotNull Match match, @Nullable java.util.UUID winner, @Nullable java.util.UUID loser, @NotNull MatchEndEvent.Reason reason)
@Nullable public java.util.UUID getWinner()
Match
. May be null if there was a no winner!UUID
of the winner of the Match
. May be null if there was a no winner!@Nullable public java.util.UUID getLoser()
Match
. May be null if there was a no loser!UUID
of the loser of the Match
. May be null if there was a no loser!@NotNull public MatchEndEvent.Reason getReason()
Match
. If reason is MatchEndEvent.Reason.OPPONENT_DEFEAT
, getWinner()
and getLoser()
is guaranteed to not return null.MatchEndEvent.Reason
that is the end reason of the Match
.public static org.bukkit.event.HandlerList getHandlerList()
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event