Package de.marcely.bedwars.api.arena
Enum RejoinPlayerCause
- All Implemented Interfaces:
Serializable
,Comparable<RejoinPlayerCause>
,java.lang.constant.Constable
The reason why a player rejoined an arena.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHe used a command (/mbedwars rejoin).The match ended and players that died during the match - thus become spectators - get re-added to the end lobby.He tried to join the arena directly (e.g.A plugin made him rejoin using the API.We received a request from a remote server (proxy), but couldn't identify the cause. -
Method Summary
Modifier and TypeMethodDescriptionstatic RejoinPlayerCause
Returns the enum constant of this type with the specified name.static RejoinPlayerCause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMMAND
He used a command (/mbedwars rejoin). -
JOIN_DIRECTLY
He tried to join the arena directly (e.g. /mbedwars join or arenasgui). -
END_LOBBY
The match ended and players that died during the match - thus become spectators - get re-added to the end lobby.This is a special conditon. Unlike other causes, the status of the arena must match
ArenaStatus.END_LOBBY
. -
PLUGIN
A plugin made him rejoin using the API. -
UNKNOWN
We received a request from a remote server (proxy), but couldn't identify the 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
-