Class WbsErrorsSubcommand


public abstract class WbsErrorsSubcommand 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 may be used to read errors in a paged format
  • Constructor Details

    • WbsErrorsSubcommand

      public WbsErrorsSubcommand(WbsPlugin plugin)
      Parameters:
      plugin - The plugin to use for messaging
  • Method Details

    • getEntriesPerPage

      protected int getEntriesPerPage()
      Returns:
      The number of errors on each page this implementation shows
    • 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()