Class WbsReloadSubcommand


public abstract class WbsReloadSubcommand extends WbsSubcommand
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.
  • Constructor Details

    • WbsReloadSubcommand

      public WbsReloadSubcommand(WbsPlugin plugin)
      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: WbsSubcommand
      Run this subcommand for the given sender, starting at arg[start]. When this is called, the permission has already been checked.
      Overrides:
      onCommand in class WbsSubcommand
      Parameters:
      sender - The sender that ran the command
      label - The alias used to run this command
      args - The arguments provided
      Returns:
      false if the command failed unexpectedly, true otherwise
    • getSettings

      protected abstract WbsSettings getSettings()
      Returns:
      The WbsSettings for the specific plugin that implements this.