Package com.velocitypowered.api.proxy
Enum ConnectionRequestBuilder.Status
- java.lang.Object
-
- java.lang.Enum<ConnectionRequestBuilder.Status>
-
- com.velocitypowered.api.proxy.ConnectionRequestBuilder.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionRequestBuilder.Status>
- Enclosing interface:
- ConnectionRequestBuilder
public static enum ConnectionRequestBuilder.Status extends Enum<ConnectionRequestBuilder.Status>
Represents the status of a connection request initiated by aConnectionRequestBuilder
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALREADY_CONNECTED
The player is already connected to this server.CONNECTION_CANCELLED
A plugin has cancelled this connection.CONNECTION_IN_PROGRESS
The connection is already in progress.SERVER_DISCONNECTED
The server disconnected the user.SUCCESS
The player was successfully connected to the server.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionRequestBuilder.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConnectionRequestBuilder.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final ConnectionRequestBuilder.Status SUCCESS
The player was successfully connected to the server.
-
ALREADY_CONNECTED
public static final ConnectionRequestBuilder.Status ALREADY_CONNECTED
The player is already connected to this server.
-
CONNECTION_IN_PROGRESS
public static final ConnectionRequestBuilder.Status CONNECTION_IN_PROGRESS
The connection is already in progress.
-
CONNECTION_CANCELLED
public static final ConnectionRequestBuilder.Status CONNECTION_CANCELLED
A plugin has cancelled this connection.
-
SERVER_DISCONNECTED
public static final ConnectionRequestBuilder.Status SERVER_DISCONNECTED
The server disconnected the user. A reason may be provided in theConnectionRequestBuilder.Result
object.
-
-
Method Detail
-
values
public static ConnectionRequestBuilder.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConnectionRequestBuilder.Status c : ConnectionRequestBuilder.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionRequestBuilder.Status 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 nameNullPointerException
- if the argument is null
-
-