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

public static enum PlayerConfigurationEvent.Reason extends Enum<PlayerConfigurationEvent.Reason>
  • Enum Constant Details

    • LOGIN

      public static final PlayerConfigurationEvent.Reason LOGIN
      Player is switching from login phase to config phase. This only happens once per connection.
    • RECONFIGURE

      public static final PlayerConfigurationEvent.Reason 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

      public static PlayerConfigurationEvent.Reason[] 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

      public static PlayerConfigurationEvent.Reason valueOf(String name)
      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 name
      NullPointerException - if the argument is null