Enum Class CommandExecuteEvent.SignedState
java.lang.Object
java.lang.Enum<CommandExecuteEvent.SignedState>
com.velocitypowered.api.event.command.CommandExecuteEvent.SignedState
- All Implemented Interfaces:
Serializable
,Comparable<CommandExecuteEvent.SignedState>
,Constable
- Enclosing class:
- CommandExecuteEvent
Represents the signed state of a command invocation.
- Since:
- 3.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that the command was executed from a signed source with signed message arguments, This is currently only possible by typing a command in chat with signed arguments.Indicates that the command was executed from an signed source with no signed message arguments, This is currently only possible by typing a command in chat.Indicates that the command was executed from an unsigned source, such as clicking on a component with aClickEvent.Action.RUN_COMMAND
.Indicates that the command invocation does not support signing. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CommandExecuteEvent.SignedState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIGNED_WITH_ARGS
Indicates that the command was executed from a signed source with signed message arguments, This is currently only possible by typing a command in chat with signed arguments.Note: Cancelling the
CommandExecuteEvent
in this state will result in the player being kicked.- Since:
- 3.4.0
-
SIGNED_WITHOUT_ARGS
Indicates that the command was executed from an signed source with no signed message arguments, This is currently only possible by typing a command in chat.- Since:
- 3.4.0
-
UNSIGNED
Indicates that the command was executed from an unsigned source, such as clicking on a component with aClickEvent.Action.RUN_COMMAND
.Clients running version 1.20.5 or later will send this state.
- Since:
- 3.4.0
-
UNSUPPORTED
Indicates that the command invocation does not support signing.This state is sent by clients running versions prior to 1.19.3.
- Since:
- 3.4.0
-
-
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
-