Class AddPlayerIssue
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AddPlayerIssue
Task failed since he's already inside an arena.static final AddPlayerIssue
There is no lobby we can teleport to.static final AddPlayerIssue
Player failed to enter since the arena is already fullstatic final AddPlayerIssue
He left the server during the join-process (e.g. if a plugin kicked him duringPlayerJoinArenaEvent
.static final AddPlayerIssue
Beta mode is enabled and player doesn't have thePermissions.BETA_USER
permission.static final AddPlayerIssue
Arena is a part of a voting pool. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddPlayerIssue
Constructs a newAddPlayerIssue
with the given id and hint message.static AddPlayerIssue
Constructs a newAddPlayerIssue
with the given id and hint message.static Collection
<AddPlayerIssue> Returns a collection of all default issues that are present with this class.@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.getId()
Get the id of this issue that was passed during construction.Get the hint message that has been passed during the construction.
-
Field Details
-
FULL
Player failed to enter since the arena is already full -
ALREADY_INSIDE
Task failed since he's already inside an arena. -
VOTING_PARTICIPATING
Arena is a part of a voting pool.- See Also:
-
NOT_BETA_USER
Beta mode is enabled and player doesn't have thePermissions.BETA_USER
permission. -
LEFT_SERVER
He left the server during the join-process (e.g. if a plugin kicked him duringPlayerJoinArenaEvent
. -
BROKEN_LOBBY
There is no lobby we can teleport to.One reason might be that its world has been unloaded.
-
-
Method Details
-
getId
Get the id of this issue that was passed during construction.The id should match the scenario of the issue, and never be random.
- Returns:
- The id of this issue
-
getUnformattedHintMessage
Get the hint message that has been passed during the construction.- Returns:
- The original hint message instance
-
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
-
construct
Constructs a newAddPlayerIssue
with the given id and hint message.The id should match the scenario of the issue, and never be random. Its main purpose is to make it possible for plugins to identify custom issues.
- Parameters:
id
- The id of this issuehintMessage
- Optionally, a message that will be displayed to the player- Returns:
- The constructed issue
-
construct
Constructs a newAddPlayerIssue
with the given id and hint message.The id should match the scenario of the issue, and never be random. Its main purpose is to make it possible for plugins to identify custom issues.
Note in case the id matches a default one: The default instance will be returned instead. The hintMessage has no affect in that case. This is to keep backwards compatibility for == matching.
- Parameters:
id
- The id of this issuehintMessage
- Optionally, a message that will be displayed to the player- Returns:
- The constructed issue
-
getDefaults
Returns a collection of all default issues that are present with this class.- Returns:
- A collection of all default issues that this plugin may make use of
-