Package com.welcome234.pluginsystem
Interface Command
public interface Command
Represents a command, which is used to register custom commands
-
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(CommandSender sender, String command, String[] args)Called when a command sender executes the registered command
-
Method Details
-
onCommand
Called when a command sender executes the registered command- Parameters:
sender- Command sender of this commandcommand- Command that was executedargs- Command arguments- Returns:
- Whether command arguments were correct. If false, the command usage message will be sent to the command sender
-