Package de.marcely.bedwars.api.arena
Enum KickReason
- All Implemented Interfaces:
Serializable
,Comparable<KickReason>
,java.lang.constant.Constable
The reason why a player has left an arena.
Used by inter alia
Used by inter alia
Arena.kickPlayer(org.bukkit.entity.Player, KickReason)
and
PlayerQuitArenaEvent.getReason()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAddRemotePlayerInfo.setForcefully(boolean)
forced him to switch to another arena.Player got kicked as the game endedPlayer died ingame while his bed was brokenPlayer got kicked by e.g.Player left the arenaPlayer got kicked during lobby phase as someone with a higher role wants to join the full arenaA party plugin caused the player to switch from one arena to anotherA plugin has kicked the playerVoting has ended and player got moved to the new arena -
Method Summary
Modifier and TypeMethodDescriptionstatic KickReason
Returns the enum constant of this type with the specified name.static KickReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LEAVE
Player left the arena -
KICK
Player got kicked by e.g. /bw kick -
GAME_LOSE
Player died ingame while his bed was broken -
GAME_END
Player got kicked as the game ended -
LOBBY_NEED_SLOT
Player got kicked during lobby phase as someone with a higher role wants to join the full arena -
VOTING_SWITCH_ARENA
Voting has ended and player got moved to the new arena -
PARTY_SWITCH_ARENA
A party plugin caused the player to switch from one arena to another -
FORCE_SWITCH_ARENA
AddRemotePlayerInfo.setForcefully(boolean)
forced him to switch to another arena. -
PLUGIN
A plugin has kicked the player
-
-
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
-