Package com.nickuc.login.api.enums
Enum Class ServerConnectType
- All Implemented Interfaces:
Serializable
,Comparable<ServerConnectType>
,Constable
Server connections types.
Priority increases from top to bottom (a lower Enum.ordinal()
value has a higher priority)
- Since:
- API v8
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the connection attempt is using the value provided in the nLogin configuration.Indicates that the connection attempt is using the stored last server value.Indicates that the connection attempt is using the value provided by the platform (Velocity or BungeeCord). -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerConnectType
Returns the enum constant of this class with the specified name.static ServerConnectType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WITH_LAST_SERVER
Indicates that the connection attempt is using the stored last server value. -
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
Indicates that the connection attempt is using the value provided in the nLogin configuration.
-
-
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
-