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 de toutes les sous-commandes
d'équipe par défaut.
Pour overrider une sous-commande, un plugin de jeu fait :
core.getCoreCommand().findSubCommand("team")
.ifPresent(team -> team.replaceSubCommand("create", new MyCustomCreate(svc, msgs)));
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidEnregistre toutes les sous-commandes par défaut.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
-
-
Constructor Details
-
TeamGroupSubCommand
-
-
Method Details
-
registerDefaults
protected void registerDefaults()Enregistre toutes les sous-commandes par défaut. Override pour exclure ou ajouter des sous-commandes au lieu du jeu standard.
-