Class TeamGroupSubCommand
java.lang.Object
fr.luc.crcore.command.AbstractCommand
fr.luc.crcore.command.SubCommand
fr.luc.crcore.command.builtin.team.TeamGroupSubCommand
- All Implemented Interfaces:
Command
Groupe
/core team ... — container des sous-commandes par défaut.
Override d'une feuille :
core.getCoreCommand().findSubCommand("team")
.ifPresent(team -> team.replaceSubCommand("create",
new MyCustomCreate(svc, msgs)));
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TeamConfigServiceprotected final MessagesServiceprotected final TeamService -
Constructor Summary
ConstructorsConstructorDescriptionTeamGroupSubCommand(TeamService service, MessagesService messages, TeamConfigService config) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverride pour exclure ou ajouter des sous-commandes au jeu standard.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
-
Field Details
-
service
-
messages
-
config
-
-
Constructor Details
-
TeamGroupSubCommand
-
-
Method Details
-
registerDefaults
protected void registerDefaults()Override pour exclure ou ajouter des sous-commandes au jeu standard.
-