Package net.md_5.bungee.api.event
Enum 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>
- Enclosing class:
- PlayerConfigurationEvent
-
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 type with the specified name.static PlayerConfigurationEvent.Reason[]values()Returns an array containing the constants of this enum type, 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 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
-