public enum BaseCommand.CommandResult
Represents the success status of a command. Returned by
.BaseCommand.runCommand
BaseCommand.runCommand
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).
|
public BaseCommand.CommandResult SUCCESS
Command ran successfully.
public 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.
public BaseCommand.CommandResult WRONG_CONTEXT
Command was used in the wrong context (ex: entering a campaign-only command in a mission).
public BaseCommand.CommandResult ERROR
Something went wrong while executing the command.