Interface Command


public interface Command
Represents a command, which is used to register custom commands
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onCommand​(CommandSender sender, String command, String[] args)
    Called when a command sender executes the registered command
  • Method Details

    • onCommand

      boolean onCommand(CommandSender sender, String command, String[] args)
      Called when a command sender executes the registered command
      Parameters:
      sender - Command sender of this command
      command - Command that was executed
      args - Command arguments
      Returns:
      Whether command arguments were correct. If false, the command usage message will be sent to the command sender