Enum ArenaIssuesCheckEvent.IssueType
java.lang.Object
java.lang.Enum<ArenaIssuesCheckEvent.IssueType>
de.marcely.bedwars.api.event.arena.ArenaIssuesCheckEvent.IssueType
- All Implemented Interfaces:
Serializable
,Comparable<ArenaIssuesCheckEvent.IssueType>
,java.lang.constant.Constable
- Enclosing class:
ArenaIssuesCheckEvent
Represents the type of an issue.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe arena'sRegenerationType
is WORLD, and the arena's world is the server's main world.The match area of the arena collides with other arenas.The hub-location (or also known as game-done-location) is inside the match area.No corners have been defined for region arenas.The hub-location (or also known as game-done-location) is missing.The game-world is either missing or not loaded.No (waiting) lobby is missing.A bed of a team is missing.The spawnpoint of a team is missing.A plugin added a custom issue.The region's maxY is greater than the world's max height.The region's minY is less than the world's min height. -
Method Summary
Modifier and TypeMethodDescriptionconstruct
(@Nullable CommandSenderWrapper sender) Construct an issue instance from this type.construct
(@Nullable CommandSenderWrapper sender, @Nullable String detail) Construct an issue instance from this type.@Nullable Message
Get the error message that would be displayed using this issue-type.Returns the enum constant of this type with the specified name.static ArenaIssuesCheckEvent.IssueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MISSING_TEAM_BED
A bed of a team is missing. -
MISSING_TEAM_SPAWN
The spawnpoint of a team is missing. -
MISSING_LOBBY
No (waiting) lobby is missing. -
MISSING_GAME_DONE_LOCATION
The hub-location (or also known as game-done-location) is missing. -
MISSING_GAME_WORLD
The game-world is either missing or not loaded. -
MISSING_CORNERS
No corners have been defined for region arenas. -
REGION_GREATER_THAN_WORLD_MAX_HEIGHT
The region's maxY is greater than the world's max height. -
REGION_LESS_THAN_WORLD_MIN_HEIGHT
The region's minY is less than the world's min height. -
GAME_WORLD_IS_MAIN_WORLD
The arena'sRegenerationType
is WORLD, and the arena's world is the server's main world. -
MATCH_AREA_COLLIDES
The match area of the arena collides with other arenas. -
MATCH_AREA_INTERFERES_GAME_DONE_LOCATION
The hub-location (or also known as game-done-location) is inside the match area.The reason why this is a problem is because non-op players may not get teleported back to the hub.
-
PLUGIN
A plugin added a custom issue.
-
-
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
-
getMessage
Get the error message that would be displayed using this issue-type.It only returns
null
forPLUGIN
.- Returns:
- The message that'd get displayed. May be
null
-
construct
Construct an issue instance from this type.- Parameters:
sender
- The sender to which this shall be displayed to for auto-translation. May benull
- Returns:
- The issue instance
- Throws:
IllegalStateException
- If done forPLUGIN
-
construct
public ArenaIssuesCheckEvent.Issue construct(@Nullable @Nullable CommandSenderWrapper sender, @Nullable @Nullable String detail) Construct an issue instance from this type.- Parameters:
sender
- The sender to which this shall be displayed to for auto-translation. May benull
detail
- The optional, additional detail that'd get displayed. May benull
- Returns:
- The issue instance
- Throws:
IllegalStateException
- If done forPLUGIN
-