Package org.cloudburstmc.server.command
Interface CommandExecutor
public interface CommandExecutor
Represents a class which contains a single method for command execution.
-
Method Summary
-
Method Details
-
onCommand
boolean onCommand(org.cloudburstmc.api.command.CommandSender sender, Command command, String label, String[] args)Called when a command is executed. If this method returns false, Cloudburst will send the command usage message for this command to the sender. If the command execution was successful, you should return true. If you want to test whether a command sender has the permission to execute a command, you can useCommand.testPermissionSilent(org.cloudburstmc.api.command.CommandSender).- Parameters:
sender- The object that executed the commandcommand- The command which was executedlabel- The alias used to execute the commandargs- Passed command arguments- Returns:
- true if the command executed successfully
-