Enum Class ServerConnectType

java.lang.Object
java.lang.Enum<ServerConnectType>
com.nickuc.login.api.enums.ServerConnectType
All Implemented Interfaces:
Serializable, Comparable<ServerConnectType>, Constable

public enum ServerConnectType extends Enum<ServerConnectType>
Server connections types.

Priority increases from top to bottom (a lower Enum.ordinal() value has a higher priority)

Since:
API v8
  • Enum Constant Details

    • WITH_LAST_SERVER

      public static final ServerConnectType WITH_LAST_SERVER
      Indicates that the connection attempt is using the stored last server value.
    • WITH_PLATFORM_SERVER

      public static final ServerConnectType WITH_PLATFORM_SERVER
      Indicates that the connection attempt is using the value provided by the platform (Velocity or BungeeCord).

      Example: if the proxy platform would normally redirect to the “survival” server, but nLogin has overwritten the initial server to the “lobby”, after authentication the player will be redirected to the “survival” server again.

    • WITH_CONFIGURED_SERVER

      public static final ServerConnectType WITH_CONFIGURED_SERVER
      Indicates that the connection attempt is using the value provided in the nLogin configuration.
  • Method Details

    • values

      public static ServerConnectType[] 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

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