Class AdminCommands
java.lang.Object
com.ordwen.odailyquests.commands.admin.AdminCommands
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionAdminCommands(ODailyQuests plugin, AdminCommandRegistry adminCommandRegistry) -
Method Summary
-
Constructor Details
-
AdminCommands
-
-
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:
onCommandin interfaceorg.bukkit.command.CommandExecutor- Parameters:
sender- the command sendercommand- the Bukkit commandlabel- the alias usedargs- command arguments- Returns:
- true if the command was handled (Bukkit convention)
-