public enum BaseCommand.CommandResult
Represents the success status of a command. Returned by
.org.lazywizard.console.BaseCommand$runCommand(java.lang.String,org.lazywizard.console.BaseCommand.CommandContext)
Enum Constant and Description |
---|
BAD_SYNTAX
Command had the wrong arguments passed in. Returning this will automatically display the syntax field from your commands.csv, so you usually don't need to include an error message.
|
ERROR
Something went wrong while executing the command.
|
SUCCESS
Command ran successfully.
|
WRONG_CONTEXT
Command was used in the wrong context (ex: entering a campaign-only command in a mission).
|
BaseCommand.CommandResult SUCCESS
Command ran successfully.
BaseCommand.CommandResult BAD_SYNTAX
Command had the wrong arguments passed in. Returning this will automatically display the syntax field from your commands.csv, so you usually don't need to include an error message.
BaseCommand.CommandResult WRONG_CONTEXT
Command was used in the wrong context (ex: entering a campaign-only command in a mission).
BaseCommand.CommandResult ERROR
Something went wrong while executing the command.