public interface Command
Since:
CAC v. 5.4.30
Author:
micartey
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(org.bukkit.command.CommandSender sender, String command, String[] args, String raw)
    Implement a command hook that will be executed by cardinal for custom commands.
  • Method Details

    • execute

      boolean execute(org.bukkit.command.CommandSender sender, String command, String[] args, String raw)
      Implement a command hook that will be executed by cardinal for custom commands. Here an example for the parameters when running the command "cac flag"
      Parameters:
      sender - the command sender (player or console)
      command - the command e.g. "cac"
      args - array of arguments e.g. ["cac", "flag"]
      raw - the raw string e.g. "/cac flag"
      Returns:
      true when the command matches