Enum Class ScenarioNoVoteRule

java.lang.Object
java.lang.Enum<ScenarioNoVoteRule>
dev.itsharshxd.zentrix.api.scenario.vote.ScenarioNoVoteRule
All Implemented Interfaces:
Serializable, Comparable<ScenarioNoVoteRule>, Constable

public enum ScenarioNoVoteRule extends Enum<ScenarioNoVoteRule>
What a match runs when voting closes without a single vote.
Since:
1.6.0
  • Enum Constant Details

    • NONE

      public static final ScenarioNoVoteRule NONE
      Run no scenarios at all.
    • RANDOM

      public static final ScenarioNoVoteRule RANDOM
      Draw from the eligible pool the way automatic selection would.
    • ADMIN_SET

      public static final ScenarioNoVoteRule ADMIN_SET
      Fall back to the administrator-configured set for this arena.
    • HIGHEST_PRIORITY

      public static final ScenarioNoVoteRule HIGHEST_PRIORITY
      Run the highest-priority eligible scenarios up to the winner count.
  • Method Details

    • values

      public static ScenarioNoVoteRule[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ScenarioNoVoteRule valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null