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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier 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- 
SUCCESSPlayer successfully made it.
- 
SUCCESS_SPECTATEThe arena was already running, and he instead joined as a spectator.AddRemotePlayerInfo.setSpectatorFallback(boolean)must be set totruefor that.
- 
HAS_ISSUEThere was an issue that made him not join the arena.You may find more info with RemotePlayerAddResult.getPlayerUniqueIds()
- 
GENERAL_ISSUEThere was a generic reason why it failed.You may find more info with RemotePlayerAddResult.getGeneralResult()
- 
PLAYER_OFFLINEPlayer went offline.
- 
ALREADY_MOVINGHe's already doing something else, such as getting added as a spectator.
- 
SPECTATE_FAILEDWe tried to make him into a spectator, but that failed.
- 
JOINED_TOO_LATEIt took him too long to join. The arena is either not in the lobby state anymore.
- 
TIMEOUTWe tried to contact the server, but we haven't received any info. Or the player didn't get moved into the server.
- 
UNKNOWNWe don't know why exactly it failed.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-