Package de.marcely.bedwars.api.remote
Enum RemotePlayerAddResult.PlayerResult
java.lang.Object
java.lang.Enum<RemotePlayerAddResult.PlayerResult>
de.marcely.bedwars.api.remote.RemotePlayerAddResult.PlayerResult
- All Implemented Interfaces:
Serializable
,Comparable<RemotePlayerAddResult.PlayerResult>
,java.lang.constant.Constable
- Enclosing class:
RemotePlayerAddResult
public static enum RemotePlayerAddResult.PlayerResult
extends Enum<RemotePlayerAddResult.PlayerResult>
Represents the result of a specific player.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHe's already doing something else, such as getting added as a spectator.There was a generic reason why it failed.There was an issue that made him not join the arena.It took him too long to join.Player went offline.We tried to make him into a spectator, but that failed.Player successfully made it.The arena was already running, and he instead joined as a spectator.We tried to contact the server, but we haven't received any info.We don't know why exactly it failed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static RemotePlayerAddResult.PlayerResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
Player successfully made it. -
SUCCESS_SPECTATE
The arena was already running, and he instead joined as a spectator.AddRemotePlayerInfo.setSpectatorFallback(boolean)
must be set totrue
for that. -
HAS_ISSUE
There was an issue that made him not join the arena.You may find more info with
RemotePlayerAddResult.getPlayerUniqueIds()
-
GENERAL_ISSUE
There was a generic reason why it failed.You may find more info with
RemotePlayerAddResult.getGeneralResult()
-
PLAYER_OFFLINE
Player went offline. -
ALREADY_MOVING
He's already doing something else, such as getting added as a spectator. -
SPECTATE_FAILED
We tried to make him into a spectator, but that failed. -
JOINED_TOO_LATE
It took him too long to join. The arena is either not in the lobby state anymore. -
TIMEOUT
We tried to contact the server, but we haven't received any info. Or the player didn't get moved into the server. -
UNKNOWN
We don't know why exactly it failed.
-
-
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
-