Package com.velocitypowered.api.proxy
Enum Class ConnectionRequestBuilder.Status
java.lang.Object
java.lang.Enum<ConnectionRequestBuilder.Status>
com.velocitypowered.api.proxy.ConnectionRequestBuilder.Status
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionRequestBuilder.Status>
,Constable
- Enclosing interface:
- ConnectionRequestBuilder
Represents the status of a connection request initiated by a
ConnectionRequestBuilder
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe player is already connected to this server.A plugin has cancelled this connection.The connection is already in progress.The server disconnected the user.The player was successfully connected to the server. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ConnectionRequestBuilder.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The player was successfully connected to the server. -
ALREADY_CONNECTED
The player is already connected to this server. -
CONNECTION_IN_PROGRESS
The connection is already in progress. -
CONNECTION_CANCELLED
A plugin has cancelled this connection. -
SERVER_DISCONNECTED
The server disconnected the user. A reason may be provided in theConnectionRequestBuilder.Result
object.
-
-
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
-