@FunctionalInterface public interface CommandExecutor
Modifier and Type | Method and Description |
---|---|
CommandResult |
execute(CommandSource src,
CommandContext args)
Callback for the execution of a command.
|
CommandResult execute(CommandSource src, CommandContext args) throws CommandException
src
- The commander who is executing this commandargs
- The parsed command arguments for this commandCommandException
- If a user-facing error occurs while
executing this command