Class AdminCommands

java.lang.Object
com.ordwen.odailyquests.commands.admin.AdminCommands
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class AdminCommands extends Object implements org.bukkit.command.CommandExecutor
  • Constructor Details

  • Method Details

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args)
      Handles the main admin command entry point.

      This method:

      • checks admin permission
      • handles the built-in "reload" subcommand
      • delegates other subcommands to the AdminCommandRegistry
      • falls back to the help message when needed
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
      Parameters:
      sender - the command sender
      command - the Bukkit command
      label - the alias used
      args - command arguments
      Returns:
      true if the command was handled (Bukkit convention)