Interface Command

All Known Implementing Classes:
AbstractCommand, AdminToggleSubCommand, BaseCommand, CoreCommand, CoreReloadSubCommand, SubCommand, TeamAddSubCommand, TeamCreateSubCommand, TeamDeleteSubCommand, TeamGroupSubCommand, TeamInfoSubCommand, TeamJoinSubCommand, TeamLeaveSubCommand, TeamListSubCommand, TeamRemoveSubCommand, TeamScoreSubCommand, TeamSetLeaderSubCommand, TeamSetSpawnSubCommand, TeamSettingsSubCommand, TeamTopSubCommand, TeamTransferSubCommand, TeamVisibilitySubCommand

public interface Command
Contrat partagé par toutes les commandes du framework CR-Core (BaseCommand top-level et SubCommand imbriquées). Implémenté concrètement par AbstractCommand.
  • Method Details

    • getName

      String getName()
    • getAliases

      List<String> getAliases()
    • getPermission

      String getPermission()
    • isPlayerOnly

      boolean isPlayerOnly()
    • getDescription

      String getDescription()
    • execute

      CommandResult execute(CommandContext context)
      Logique d'exécution de la commande (cas feuille, ou fallback si aucune sous-commande ne matche).
    • tabComplete

      List<String> tabComplete(org.bukkit.command.CommandSender sender, String[] args)
      Suggestions de tab-completion en fonction des arguments déjà tapés. args contient TOUS les arguments depuis ce niveau de commande (sans le nom de la commande elle-même).
    • matches

      default boolean matches(String label)
      true si label match le nom ou un alias (case-insensitive).