public enum CommandStatus extends Enum<CommandStatus>
Enum Constant and Description |
---|
BAD_ARGS
User supplied bad command arguments
|
CONSOLE_ONLY
Command is intended to be run by the console only
|
FAILED
The command did not execute correctly
|
NO_PERMISSION
The user does not have the appropriate permissions to execute this
|
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(org.bukkit.command.CommandSender sender,
Lang format,
SubCommand<?> 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 NO_PERMISSION
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(org.bukkit.command.CommandSender sender, Lang format, SubCommand<?> cmd)
CommandSender
upon the execution of a commandsender
- The CommandSender
object that executed the commandformat
- The Lang
being used as a format stringcmd
- The SubCommand
that was executedCopyright © 2015. All rights reserved.