Package de.marcely.bedwars.api.arena
Enum AddPlayerIssue
- All Implemented Interfaces:
Serializable
,Comparable<AddPlayerIssue>
,java.lang.constant.Constable
Reasons why a player failed to enter 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 ConstantDescriptionTask failed since he's already inside an arena.The world of the arena has been unloaded.Player failed to enter since the arena is already fullVoting has been enabled in the config file, but the player still entered a normal arenaBeta mode is enabled and player doesn't have thePermissions.BETA_USER
permission.Player failed to enter as a plugin caused the task to cancelVoting is disabled, but he tried to enter a voting arena -
Method Summary
Modifier and TypeMethodDescription@Nullable Message
getHintMessage
(Arena arena) Returns the message that will be displayed to the player.@Nullable Message
getHintMessage
(RemoteArena arena) Returns the message that will be displayed to the player.static AddPlayerIssue
Returns the enum constant of this type with the specified name.static AddPlayerIssue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FULL
Player failed to enter since the arena is already full -
ALREADY_INSIDE
Task failed since he's already inside an arena. -
MUST_JOIN_VOTING
Voting has been enabled in the config file, but the player still entered a normal arena -
VOTING_MUST_JOIN_NORMAL
Voting is disabled, but he tried to enter a voting arena -
NOT_BETA_USER
Beta mode is enabled and player doesn't have thePermissions.BETA_USER
permission. -
ARENA_ISSUE_MISSING_WORLD
The world of the arena has been unloaded. -
PLUGIN
Player failed to enter as a plugin caused the task to cancel
-
-
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
-
getHintMessage
Returns the message that will be displayed to the player.May be
null
when none will be displayed in the given case.- Parameters:
arena
- The arena to which the player has been added- Returns:
- The message that will get displayed to the player. May be
null
-
getHintMessage
Returns the message that will be displayed to the player.May be
null
when none will be displayed in the given case.- Parameters:
arena
- The arena to which the player has been added- Returns:
- The message that will get displayed to the player. May be
null
-