Class ScenarioVoteEndEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
dev.itsharshxd.zentrix.api.events.scenario.ScenarioVoteEndEvent
A match's scenario vote closed and its winners are known.
Fired before the selection is locked in, so a listener that wants to change the outcome should
do it in ScenarioSelectionLockEvent instead — this event is a notification.
- Since:
- 1.6.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionScenarioVoteEndEvent(@NotNull ZentrixGame game, @NotNull ScenarioVoteSnapshot snapshot, @NotNull List<String> winners, @NotNull ScenarioVoteEndEvent.Reason reason, boolean noVotes) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull ScenarioVoteEndEvent.Reason@NotNull ScenarioVoteSnapshotThe final tally.The elected scenarios, after tie and no-vote rules were applied.booleanWhether nobody voted and the no-vote rule decided the winners.Methods inherited from class dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
getArenaName, getGame, getGameId, getGameState, getGameTypeName, getPlayerCount, getRuntimeId, getSourceArenaNameMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ScenarioVoteEndEvent
public ScenarioVoteEndEvent(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull ScenarioVoteSnapshot snapshot, @NotNull @NotNull List<String> winners, @NotNull @NotNull ScenarioVoteEndEvent.Reason reason, boolean noVotes)
-
-
Method Details
-
getSnapshot
The final tally. -
getWinners
The elected scenarios, after tie and no-vote rules were applied. -
getReason
-
hadNoVotes
public boolean hadNoVotes()Whether nobody voted and the no-vote rule decided the winners. -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixGameEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixGameEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-