Enum SpectateReason
- All Implemented Interfaces:
- Serializable,- Comparable<SpectateReason>,- java.lang.constant.Constable
Reasons or causes for someone spectating
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionPlayer used the "join a random arena" item as a spectator, but failed and reentered as a spectatorPlayer died and is temporarily a spectatorPlayer entered manuallyPlayer is a member of a party and followed its leader.Player entered as a spectator to watch another person play using the 'locate player' command.Player lost and is now watching the gameA plugin made him into a spectator
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGet whether a back up of the player's inventory is being created in this reason.booleanGet whether the join message shall be sent to the player with this reason.static SpectateReasonReturns the enum constant of this type with the specified name.static SpectateReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
ENTERPlayer entered manually
- 
LOSEPlayer lost and is now watching the game
- 
DEATHPlayer died and is temporarily a spectator
- 
ARENA_CHANGE_FAILEDPlayer used the "join a random arena" item as a spectator, but failed and reentered as a spectator
- 
FOLLOW_PARTYPlayer is a member of a party and followed its leader. However, the match is already running, whereby he's spectating instead.
- 
LOCATE_PLAYERPlayer entered as a spectator to watch another person play using the 'locate player' command.
- 
PLUGINA plugin made him into a spectator
 
- 
- 
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
 
- 
isBackingUpInventorypublic boolean isBackingUpInventory()Get whether a back up of the player's inventory is being created in this reason.Depending on the server's configuration, the players inventory is being backed up before he spectates an arena. And when he leaves, it is possibly being applied again. - Returns:
- If a backup is being created of the player's inventory
 
- 
isDisplayingJoinMessagepublic boolean isDisplayingJoinMessage()Get whether the join message shall be sent to the player with this reason.It might not be neccessary to display the join message (Spectator_Join) in some cases. - Returns:
- Whether the join message shall be sent with this reason
 
 
-