Class CoreReloadSubCommand
java.lang.Object
fr.luc.crcore.command.AbstractCommand
fr.luc.crcore.command.SubCommand
fr.luc.crcore.command.builtin.CoreReloadSubCommand
- All Implemented Interfaces:
Command
/core reload — recharge tous les fichiers user du dataFolder :
<plugin>-messages.yml, <plugin>-broadcasts.yml et
<plugin>-team-config.yml, sans restart.
Permission : crcore.reload.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BroadcastServiceprotected final MessagesServiceprotected final TeamConfigService -
Constructor Summary
ConstructorsConstructorDescriptionCoreReloadSubCommand(MessagesService messages, BroadcastService broadcasts, TeamConfigService teamConfig) -
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
-
messages
-
broadcasts
-
teamConfig
-
-
Constructor Details
-
CoreReloadSubCommand
public CoreReloadSubCommand(MessagesService messages, BroadcastService broadcasts, TeamConfigService teamConfig)
-
-
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
-