All Implemented Interfaces:
AdminCommand, AdminCommandCompleter

public class AShowCommand extends AdminCommandBase
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: AdminCommand
      Gets the name of the command. This is used as the subcommand identifier (e.g., /command <name>).
      Returns:
      the subcommand name
    • getPermission

      public String getPermission()
      Description copied from interface: AdminCommand
      Gets the required permission to execute the command.
      Returns:
      the permission node as a string
    • execute

      public void execute(org.bukkit.command.CommandSender sender, String[] args)
      Description copied from interface: AdminCommand
      Executes the command logic when the command is invoked.
      Parameters:
      sender - the command sender (can be a player or the console)
      args - the arguments passed to the command
    • onTabComplete

      public List<String> onTabComplete(org.bukkit.command.CommandSender sender, String[] args)
      Description copied from interface: AdminCommandCompleter
      Provides tab-completion suggestions for the command based on the current arguments.

      This method is called when a player or console user presses the TAB key while typing a command. You can use it to offer context-aware completions such as subcommands, player names, or any other dynamic options.

      Returning null will allow Bukkit to automatically suggest online player names. Returning an empty list will disable tab completion at that argument position.

      Parameters:
      sender - the command sender (can be a player or the console)
      args - the arguments currently entered for the command
      Returns:
      a list of possible completions, null to let Bukkit suggest player names, or an empty list to disable suggestions