All Implemented Interfaces:
AdminCommand, AdminCommandCompleter

public class ResetCommand extends AdminCommandBase
  • Constructor Details

    • ResetCommand

      public ResetCommand()
  • 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
    • quests

      public void quests(org.bukkit.command.CommandSender sender, org.bukkit.entity.Player target)
      Resets the current active quests of the player.
      Parameters:
      sender - the command sender
      target - the player to reset
    • onTabComplete

      public List<String> onTabComplete(@NotNull 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