Package wbs.utils.util.commands
Class WbsReloadSubcommand
java.lang.Object
wbs.utils.util.plugin.WbsMessenger
wbs.utils.util.commands.WbsSubcommand
wbs.utils.util.commands.WbsReloadSubcommand
A specific implementation of WbsSubcommand that's commonly used
in plugins that use WbsSettings to track configs.
Implementing classes simply return their implementation of WbsSettings
and it's reloaded, sending a prompt to the using player.
-
Field Summary
Fields inherited from class wbs.utils.util.plugin.WbsMessenger
plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract WbsSettingsprotected booleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, @NotNull String[] args) Run this subcommand for the given sender, starting at arg[start].Methods inherited from class wbs.utils.util.commands.WbsSubcommand
addAlias, addAliases, getAliases, getLabel, getPermission, getTabCompletions, getTabCompletions, isAliased, onCommand, onCommandCheckPermission, sendUsage, sendUsage, setAliases, setPermissionMethods inherited from class wbs.utils.util.plugin.WbsMessenger
broadcast, broadcastActionBar, checkPermission, sendActionBar, sendList, sendList, sendMessage, sendMessageNoPrefix
-
Constructor Details
-
WbsReloadSubcommand
- Parameters:
plugin- The plugin to be used for messaging
-
-
Method Details
-
onCommand
protected boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String label, @NotNull @NotNull String[] args) Description copied from class:WbsSubcommandRun this subcommand for the given sender, starting at arg[start]. When this is called, the permission has already been checked.- Overrides:
onCommandin classWbsSubcommand- Parameters:
sender- The sender that ran the commandlabel- The alias used to run this commandargs- The arguments provided- Returns:
- false if the command failed unexpectedly, true otherwise
-
getSettings
- Returns:
- The WbsSettings for the specific plugin that implements this.
-