Enum Class RejoinEligibility

java.lang.Object
java.lang.Enum<RejoinEligibility>
dev.itsharshxd.zentrix.api.rejoin.RejoinEligibility
All Implemented Interfaces:
Serializable, Comparable<RejoinEligibility>, Constable

public enum RejoinEligibility extends Enum<RejoinEligibility>
Whether a player can return to the match they left through their corpse, and if not, why.
Since:
1.8.0
  • Enum Constant Details

    • ELIGIBLE

      public static final RejoinEligibility ELIGIBLE
      They can rejoin now.
    • ALREADY_IN_GAME

      public static final RejoinEligibility ALREADY_IN_GAME
      They are already in a match.
    • BUSY

      public static final RejoinEligibility BUSY
      Another join or rejoin of theirs is still being processed.
    • SPECTATING

      public static final RejoinEligibility SPECTATING
      They are spectating.
    • NO_CORPSE

      public static final RejoinEligibility NO_CORPSE
      They left no corpse that holds a return.
    • CORPSE_KILLED

      public static final RejoinEligibility CORPSE_KILLED
      Their corpse was killed while they were away.
    • CORPSE_EXPIRED

      public static final RejoinEligibility CORPSE_EXPIRED
      Their corpse expired.
    • CORPSE_EMPTY

      public static final RejoinEligibility CORPSE_EMPTY
      Their corpse's loot was already dropped.
    • CORPSE_MISSING

      public static final RejoinEligibility CORPSE_MISSING
      Their corpse could not be found where it last stood.
    • MATCH_ENDED

      public static final RejoinEligibility MATCH_ENDED
      The match ended or is being decided.
    • LEFT_BY_COMMAND

      public static final RejoinEligibility LEFT_BY_COMMAND
      Leaving that way - such as with /leave - forfeits the return, by configuration.
    • ALREADY_REJOINED

      public static final RejoinEligibility ALREADY_REJOINED
      They already rejoined this match once and the configuration allows only one return.
    • TEAM_GONE

      public static final RejoinEligibility TEAM_GONE
      Their team no longer exists.
    • TEAM_ELIMINATED

      public static final RejoinEligibility TEAM_ELIMINATED
      Their team was eliminated and the configuration does not bring it back.
    • CANCELLED

      public static final RejoinEligibility CANCELLED
      A PlayerJoinGameEvent listener refused the return.
    • FAILED

      public static final RejoinEligibility FAILED
      The return failed, for example because the teleport was refused; nothing changed.
    • UNAVAILABLE

      public static final RejoinEligibility UNAVAILABLE
      Rejoining is not available on this server.
  • Method Details

    • values

      public static RejoinEligibility[] 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 RejoinEligibility 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
    • isEligible

      public boolean isEligible()
      Whether the player can rejoin.