Package com.velocitypowered.api.command
Enum Class CommandResult
- All Implemented Interfaces:
Serializable
,Comparable<CommandResult>
,Constable
The result of a command invocation attempt.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn unexpected exception occurred while executing the command in the proxy.The command was successfully executed by the proxy.The command was forwarded to the backend server.The provided command input contained syntax errors. -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandResult
Returns the enum constant of this class with the specified name.static CommandResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXECUTED
The command was successfully executed by the proxy. -
FORWARDED
The command was forwarded to the backend server. The command may be successfully executed or not -
SYNTAX_ERROR
The provided command input contained syntax errors. -
EXCEPTION
An unexpected exception occurred while executing the command in the proxy.
-
-
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
-