Enum Class RejoinEligibility
- All Implemented Interfaces:
Serializable,Comparable<RejoinEligibility>,Constable
Whether a player can return to the match they left through their corpse, and if not, why.
- Since:
- 1.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThey are already in a match.They already rejoined this match once and the configuration allows only one return.Another join or rejoin of theirs is still being processed.APlayerJoinGameEventlistener refused the return.Their corpse's loot was already dropped.Their corpse expired.Their corpse was killed while they were away.Their corpse could not be found where it last stood.They can rejoin now.The return failed, for example because the teleport was refused; nothing changed.Leaving that way - such as with/leave- forfeits the return, by configuration.The match ended or is being decided.They left no corpse that holds a return.They are spectating.Their team was eliminated and the configuration does not bring it back.Their team no longer exists.Rejoining is not available on this server. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the player can rejoin.static RejoinEligibilityReturns the enum constant of this class with the specified name.static RejoinEligibility[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ELIGIBLE
They can rejoin now. -
ALREADY_IN_GAME
They are already in a match. -
BUSY
Another join or rejoin of theirs is still being processed. -
SPECTATING
They are spectating. -
NO_CORPSE
They left no corpse that holds a return. -
CORPSE_KILLED
Their corpse was killed while they were away. -
CORPSE_EXPIRED
Their corpse expired. -
CORPSE_EMPTY
Their corpse's loot was already dropped. -
CORPSE_MISSING
Their corpse could not be found where it last stood. -
MATCH_ENDED
The match ended or is being decided. -
LEFT_BY_COMMAND
Leaving that way - such as with/leave- forfeits the return, by configuration. -
ALREADY_REJOINED
They already rejoined this match once and the configuration allows only one return. -
TEAM_GONE
Their team no longer exists. -
TEAM_ELIMINATED
Their team was eliminated and the configuration does not bring it back. -
CANCELLED
APlayerJoinGameEventlistener refused the return. -
FAILED
The return failed, for example because the teleport was refused; nothing changed. -
UNAVAILABLE
Rejoining is not available on this server.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isEligible
public boolean isEligible()Whether the player can rejoin.
-