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 Summary
Modifier and TypeMethodDescriptionexecute(CommandContext context) Logique d'exécution de la commande (cas feuille, ou fallback si aucune sous-commande ne matche).getName()booleandefault booleantruesilabelmatch le nom ou un alias (case-insensitive).tabComplete(org.bukkit.command.CommandSender sender, String[] args) Suggestions de tab-completion en fonction des arguments déjà tapés.
-
Method Details
-
getName
String getName() -
getAliases
-
getPermission
String getPermission() -
isPlayerOnly
boolean isPlayerOnly() -
getDescription
String getDescription() -
execute
Logique d'exécution de la commande (cas feuille, ou fallback si aucune sous-commande ne matche). -
tabComplete
-
matches
truesilabelmatch le nom ou un alias (case-insensitive).
-