Class CommandListener

java.lang.Object
valorless.rarespawns.CommandListener
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class CommandListener extends Object implements 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 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:
      onCommand in interface org.bukkit.command.CommandExecutor
      Parameters:
      sender - the source issuing the command
      command - the Bukkit command being executed
      label - the alias used to invoke the command
      args - the arguments passed by the sender
      Returns:
      true if a subcommand handled the command; false to fall back to usage/help