Class SubCommand
java.lang.Object
fr.luc.crcore.command.AbstractCommand
fr.luc.crcore.command.SubCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
CoreReloadSubCommand, TeamAddSubCommand, TeamCreateSubCommand, TeamDeleteSubCommand, TeamGroupSubCommand, TeamInfoSubCommand, TeamJoinSubCommand, TeamLeaveSubCommand, TeamListSubCommand, TeamRemoveSubCommand, TeamScoreSubCommand, TeamSetLeaderSubCommand, TeamSetSpawnSubCommand, TeamSettingsSubCommand, TeamTopSubCommand, TeamTransferSubCommand, TeamVisibilitySubCommand
Sous-commande imbriquée. Peut être :
- feuille — override
AbstractCommand.execute(CommandContext)avec la logique métier - groupe — appelle
addSubCommand(...)dans son constructeur pour déléguer à des sous-sous-commandes (ex./core team create)
Toute la machinerie de routage / parsing / tab-complete est héritée de
AbstractCommand.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractCommand
addAlias, addSubCommand, argument, buildContext, buildDefaultUsage, checkAccess, description, dispatch, execute, findSubCommand, getAliases, getDescription, getName, getPermission, getRequiredArgumentCount, getSubCommands, getTotalArgumentCount, getUsage, hasSubCommands, isPlayerOnly, listSubCommands, optionalArgument, permission, playerOnly, replaceSubCommand, tabComplete, usage
-
Constructor Details
-
SubCommand
-