Class CoreCommand
java.lang.Object
fr.luc.crcore.util.command.AbstractCommand
fr.luc.crcore.util.command.BaseCommand
fr.luc.crcore.builtin.CoreCommand
- All Implemented Interfaces:
Command, org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
Commande racine
/core. Container des features actives.
Les services des features peuvent être null si la feature
correspondante n'a pas été activée via les
CRCoreConfig.setupTeams() etc. — la sous-commande
associée n'est alors simplement pas enregistrée.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BroadcastServiceprotected final MessagesServiceprotected final ModerationServiceprotected final PlayerProfileServiceprotected final TeamConfigServiceprotected final TeamService -
Constructor Summary
ConstructorsConstructorDescriptionCoreCommand(TeamService teamService, PlayerProfileService playerProfileService, MessagesService messages, BroadcastService broadcasts, TeamConfigService teamConfig, ModerationService moderation) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleResult(org.bukkit.command.CommandSender sender, CommandResult result) Affiche leCommandResultà l'utilisateur.protected voidEnregistre les sous-commandes des features activées + reload.Methods inherited from class BaseCommand
onCommand, onTabCompleteMethods 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
-
teamService
-
playerProfileService
-
messages
-
broadcasts
-
teamConfig
-
moderation
-
-
Constructor Details
-
CoreCommand
public CoreCommand(TeamService teamService, PlayerProfileService playerProfileService, MessagesService messages, BroadcastService broadcasts, TeamConfigService teamConfig, ModerationService moderation)
-
-
Method Details
-
registerDefaults
protected void registerDefaults()Enregistre les sous-commandes des features activées + reload. -
handleResult
Description copied from class:BaseCommandAffiche leCommandResultà l'utilisateur. Override pour personnaliser le formatage (couleurs, locales, etc.).- Overrides:
handleResultin classBaseCommand
-