Package valorless.rarespawns
Class CommandListener
java.lang.Object
valorless.rarespawns.CommandListener
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Command executor for RareSpawns.
Routes the base command to specific subcommand handlers (reload, item, spawn, kill) after performing simple permission checks. Also emits debug logs for tracing command usage.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CommandListener
public CommandListener()
-
-
Method Details
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) Handles the RareSpawns root command and delegates to subcommand executors.- Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor- Parameters:
sender- the source issuing the commandcommand- the Bukkit command being executedlabel- the alias used to invoke the commandargs- the arguments passed by the sender- Returns:
- true if a subcommand handled the command; false to fall back to usage/help
-