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

public final class ScenarioVoteEndEvent extends ZentrixGameEvent
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
  • Constructor Details

  • Method Details

    • getSnapshot

      @NotNull public @NotNull ScenarioVoteSnapshot getSnapshot()
      The final tally.
    • getWinners

      @NotNull public @NotNull List<String> getWinners()
      The elected scenarios, after tie and no-vote rules were applied.
    • getReason

      @NotNull public @NotNull ScenarioVoteEndEvent.Reason 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: ZentrixGameEvent
      Gets the handler list for this event.
      Overrides:
      getHandlers in class ZentrixGameEvent
      Returns:
      The handler list
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()