Package de.marcely.bedwars.api.arena
Enum RejoinPlayerIssue
- All Implemented Interfaces:
Serializable
,Comparable<RejoinPlayerIssue>
,java.lang.constant.Constable
Reasons why a player has failed to rejoin a match.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe game is not running anymore.The player is not participating in any game.A new game is running in which the player wasn't present.A custom cause.Rejoin process has already been started and is currently running for the player.Server didn't reply to rejoin request.The bed of the team has been destroyed whereby the player may not respawn anymore.Rejoin calculation took too long. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable RejoinPlayerIssue
Get the message that would be sent to the player.static RejoinPlayerIssue
Returns the enum constant of this type with the specified name.static RejoinPlayerIssue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PROCESS_ALREADY_RUNNING
Rejoin process has already been started and is currently running for the player. -
NOT_PARTICIPATING
The player is not participating in any game. -
NOT_ACTIVE
The game is not running anymore. -
NOT_VALID_PLAYER
A new game is running in which the player wasn't present. -
WENT_OFFLINE
Rejoin calculation took too long. Player went offline in the meantime. -
TEAM_DEAD
The bed of the team has been destroyed whereby the player may not respawn anymore. -
SERVER_OFFLINE
Server didn't reply to rejoin request. -
PLUGIN
A custom cause.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMessage
Get the message that would be sent to the player.- Returns:
- Gets a message instance that'd be sent with this given issue
-
byName
-