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 les fichiers
<plugin>-messages.yml et <plugin>-broadcasts.yml depuis
le disque, sans restart du serveur.
Permission : crcore.reload. Les defaults bundlés dans le jar
ne sont pas re-chargés (ils ne bougent pas pendant le runtime), seulement
les fichiers user en dataFolder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BroadcastServiceprotected final MessagesService -
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
-
messages
-
broadcasts
-
-
Constructor Details
-
CoreReloadSubCommand
-
-
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
-