Class TeamCreateSubCommand
java.lang.Object
fr.luc.crcore.util.command.AbstractCommand
fr.luc.crcore.util.command.SubCommand
fr.luc.crcore.features.team.command.TeamCreateSubCommand
- All Implemented Interfaces:
Command
/core team create <name> <tag> <color> [visibility] [leader]
Admin uniquement. Crée une équipe ; visibilité par défaut PRIVATE, chef optionnel (sinon team leaderless).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractCommand
addAlias, addSubCommand, argument, buildContext, buildDefaultUsage, checkAccess, description, dispatch, findSubCommand, getAliases, getDescription, getName, getPermission, getRequiredArgumentCount, getSubCommands, getTotalArgumentCount, getUsage, hasSubCommands, isPlayerOnly, listSubCommands, optionalArgument, permission, playerOnly, replaceSubCommand, tabComplete, usage
-
Field Details
-
service
-
messages
-
-
Constructor Details
-
TeamCreateSubCommand
-
-
Method Details
-
execute
Description copied from class:AbstractCommandLogique métier de la commande. Override par les sous-classes.Comportement par défaut :
- Si cette commande a des sous-commandes → affiche la liste (aide).
- Sinon → renvoie
CommandResult.invalidUsage().
- Specified by:
executein interfaceCommand- Overrides:
executein classAbstractCommand
-