- All Implemented Interfaces:
public enum KickReason extends Enum<KickReason>
The reason why a player has left an arena.
Used by inter alia
Used by inter alia
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant SummaryEnum ConstantDescriptionPlayer 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 SummaryModifier and TypeMethodDescription
static KickReasonReturns the enum constant of this type with the specified name.
values()Returns an array containing the constants of this enum type, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
LEAVEpublic static final KickReason LEAVEPlayer left the arena
KICKpublic static final KickReason KICKPlayer got kicked by e.g. /bw kick
GAME_LOSEpublic static final KickReason GAME_LOSEPlayer died ingame while his bed was broken
GAME_ENDpublic static final KickReason GAME_ENDPlayer got kicked as the game ended
LOBBY_NEED_SLOTpublic static final KickReason LOBBY_NEED_SLOTPlayer got kicked during lobby phase as someone with a higher role wants to join the full arena
VOTING_SWITCH_ARENApublic static final KickReason VOTING_SWITCH_ARENAVoting has ended and player got moved to the new arena
PARTY_SWITCH_ARENApublic static final KickReason PARTY_SWITCH_ARENAA party plugin caused the player to switch from one arena to another
FORCE_SWITCH_ARENApublic static final KickReason FORCE_SWITCH_ARENA
PLUGINpublic static final KickReason PLUGINA plugin has kicked the player
valuespublic static KickReason values()Returns an array containing the constants of this enum type, in the order they are declared.
- an array containing the constants of this enum type, in the order they are declared
valueOfpublic static KickReason valueOf
(String name)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.)
name- the name of the enum constant to be returned.
- the enum constant with the specified name
IllegalArgumentException- if this enum type has no constant with the specified name
NullPointerException- if the argument is null