Package net.md_5.bungee.api.event
Enum Class PlayerConfigurationEvent.Reason
java.lang.Object
java.lang.Enum<PlayerConfigurationEvent.Reason>
net.md_5.bungee.api.event.PlayerConfigurationEvent.Reason
- All Implemented Interfaces:
Serializable,Comparable<PlayerConfigurationEvent.Reason>,Constable
- Enclosing class:
PlayerConfigurationEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlayer is switching from login phase to config phase.Player is switching from game phase to config phase. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PlayerConfigurationEvent.Reason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOGIN
Player is switching from login phase to config phase. This only happens once per connection. -
RECONFIGURE
Player is switching from game phase to config phase. This can happen multiple times per connection. Usually happens on server switch and when the backend server reconfigures the player.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-