Package de.marcely.bedwars.api.arena
Enum AddPlayerCause
- All Implemented Interfaces:
Serializable
,Comparable<AddPlayerCause>
,java.lang.constant.Constable
The reason why a player joined an arena.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHe used an arenas gui (opened with /mbedwars arenasgui)auto-join feature caused him to join the arena as he entered the server.He used a command (/mbedwars join).The match ended and players that died during the match - thus become spectators - get re-added to the end lobby.He got pulled into the arena by his party as his leader wants to join the arena.A plugin made him enter it using the API.He used the setup gui (opened with /mbedwars arena setupgui)He clicked on a sign (/mbedwars spawn joinarenasign).Used theSpectatorItemHandlerType.NEXT_ROUND
item.Voting has ended, and he now joined the arena that won. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddPlayerCause
Returns the enum constant of this type with the specified name.static AddPlayerCause[]
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 join). -
SIGN
He clicked on a sign (/mbedwars spawn joinarenasign). -
SETUP_GUI
He used the setup gui (opened with /mbedwars arena setupgui) -
ARENAS_GUI
He used an arenas gui (opened with /mbedwars arenasgui) -
AUTO_JOIN
auto-join feature caused him to join the arena as he entered the server. -
SPECTATOR_FIND_NEXT_ROUND
Used theSpectatorItemHandlerType.NEXT_ROUND
item. -
VOTING_SWITCH_ARENA
Voting has ended, and he now joined the arena that won. -
PARTY_SWITCH_ARENA
He got pulled into the arena by his party as his leader wants to join the arena. -
END_LOBBY
The match ended and players that died during the match - thus become spectators - get re-added to the end lobby.The status of the arena must match
ArenaStatus.END_LOBBY
. -
PLUGIN
A plugin made him enter it using the API.
-
-
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
-