public enum CommandStatus extends Enum<CommandStatus>
Enum Constant and Description |
---|
BAD_ARGS
User supplied bad command arguments
|
COMMAND_BLOCK_ONLY
Command is intended to be run by command blocks only
|
CONSOLE_ONLY
Command is intended to be run by the console only
|
FAILED
The command did not execute correctly
|
MINECART_ONLY
Command is intended to be run by a CommandMinecart only
|
NO_PERMISSION
The user does not have the appropriate permissions to execute this
|
NO_PROXIES
Command should not be executed by a proxied sender
|
NOT_EXECUTABLE
The command is not meant to be an endpoint
|
PLAYER_ONLY
Command is intended to be run by players only
|
RCON_ONLY
Command is intended to be run by remote consoles (rcon) only
|
SUCCESS
The command executed successfully
|
Modifier and Type | Method and Description |
---|---|
void |
handle(CommandSender sender,
Lang format,
CommandNode<?> cmd)
Handles output to a
CommandSender upon the execution of a command |
static CommandStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandStatus SUCCESS
public static final CommandStatus FAILED
public static final CommandStatus BAD_ARGS
public static final CommandStatus PLAYER_ONLY
public static final CommandStatus CONSOLE_ONLY
public static final CommandStatus RCON_ONLY
public static final CommandStatus COMMAND_BLOCK_ONLY
public static final CommandStatus MINECART_ONLY
public static final CommandStatus NO_PROXIES
public static final CommandStatus NO_PERMISSION
public static final CommandStatus NOT_EXECUTABLE
public static CommandStatus[] values()
for (CommandStatus c : CommandStatus.values()) System.out.println(c);
public static CommandStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void handle(CommandSender sender, Lang format, CommandNode<?> cmd)
CommandSender
upon the execution of a commandsender
- The CommandSender
object that executed the commandformat
- The LangFile
being used as a format stringcmd
- The CommandNode
that was executedCopyright © 2017. All rights reserved.