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

public static enum CommandExecuteEvent.SignedState extends Enum<CommandExecuteEvent.SignedState>
Represents the signed state of a command invocation.
Since:
3.4.0
  • Enum Constant Details

    • SIGNED_WITH_ARGS

      public static final CommandExecuteEvent.SignedState 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

      public static final CommandExecuteEvent.SignedState 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

      public static final CommandExecuteEvent.SignedState UNSIGNED
      Indicates that the command was executed from an unsigned source, such as clicking on a component with a ClickEvent.Action.RUN_COMMAND.

      Clients running version 1.20.5 or later will send this state.

      Since:
      3.4.0
    • UNSUPPORTED

      public static final CommandExecuteEvent.SignedState 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

      public static CommandExecuteEvent.SignedState[] 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

      public static CommandExecuteEvent.SignedState valueOf(String name)
      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 name
      NullPointerException - if the argument is null