public interface CommandExecutor
Represents a class which contains a single method for executing commands
boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String args)Executes the given command, returning its success.
If false is returned, then the "usage" plugin.yml entry for this command (if defined) will be sent to the player.
sender- Source of the command
command- Command which was executed
label- Alias of the command which was used
args- Passed command arguments
- true if a valid command, otherwise false