(work in progress) - Pass all dependencies via constructor - Encapsulate command handling more (e.g. split CommandHandler with new CommandMapper) - Add help command to all base commands at one central point See AccountsCommand or HelpCommand for an example of the advantages - all necessary functions come from CommandService; objects aren't retrieved through a singleton getInstance() method anymore
19 lines
300 B
Java
19 lines
300 B
Java
package fr.xephi.authme.command;
|
|
|
|
/**
|
|
* Result status for mapping command parts. See {@link FoundCommandResult} for a detailed description of the states.
|
|
*/
|
|
public enum FoundResultStatus {
|
|
|
|
SUCCESS,
|
|
|
|
INCORRECT_ARGUMENTS,
|
|
|
|
UNKNOWN_LABEL,
|
|
|
|
NO_PERMISSION,
|
|
|
|
MISSING_BASE_COMMAND
|
|
|
|
}
|