Package de.craftsblock.craftsnet.command
Interface CommandExecutor
- All Known Implementing Classes:
PluginCommand,ReloadCommand,ShutdownCommand,VersionCommand
public interface CommandExecutor
The
CommandExecutor interface represents an object capable of executing commands.
Classes that implement this interface can define custom logic for handling commands.- Since:
- 2.2.0-SNAPSHOT
- See Also:
-
Method Summary
-
Method Details
-
onCommand
void onCommand(@NotNull @NotNull Command command, String alias, @NotNull @NotNull String[] args, @NotNull @NotNull Logger logger) Executes a command with the provided arguments and logger.- Parameters:
command- The command to be executed.alias- The alias name of the command used to access it.args- The arguments passed with the command.logger- The logger for outputting messages or logging.
-