Class CommandManager

java.lang.Object
stawa.vitalstrike.commands.CommandManager

public class CommandManager extends Object
Manages all commands for the VitalStrike plugin.
  • Constructor Details

    • CommandManager

      public CommandManager(VitalStrike plugin, VitalLogger logger, PlayerManager playerManager, PlayerStats playerStats, HelpManager helpManager)
      Constructs a new CommandManager.
      Parameters:
      plugin - the VitalStrike plugin instance
      logger - the logger
      playerManager - the player manager
      playerStats - the player stats
      helpManager - the help manager
  • Method Details

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
      Handles the command.
      Parameters:
      sender - the command sender
      command - the command
      label - the label
      args - the arguments
      Returns:
      true if the command was handled, false otherwise
    • onTabComplete

      public List<String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args)
      Handles tab completion for the plugin commands.
      Parameters:
      sender - the command sender
      command - the command
      alias - the alias
      args - the arguments
      Returns:
      the list of completions