Enum Class CommandResult

java.lang.Object
java.lang.Enum<CommandResult>
com.velocitypowered.api.command.CommandResult
All Implemented Interfaces:
Serializable, Comparable<CommandResult>, Constable

public enum CommandResult extends Enum<CommandResult>
The result of a command invocation attempt.
  • Enum Constant Details

    • EXECUTED

      public static final CommandResult EXECUTED
      The command was successfully executed by the proxy.
    • FORWARDED

      public static final CommandResult FORWARDED
      The command was forwarded to the backend server. The command may be successfully executed or not
    • SYNTAX_ERROR

      public static final CommandResult SYNTAX_ERROR
      The provided command input contained syntax errors.
    • EXCEPTION

      public static final CommandResult EXCEPTION
      An unexpected exception occurred while executing the command in the proxy.
  • Method Details

    • values

      public static CommandResult[] 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 CommandResult 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