Class ToggleCommandHandler

java.lang.Object
stawa.vitalstrike.commands.handlers.ToggleCommandHandler

public class ToggleCommandHandler extends Object
Handles toggle-related commands for the VitalStrike plugin. This class manages the enabling and disabling of damage indicators for players.
  • Constructor Details

    • ToggleCommandHandler

      public ToggleCommandHandler(VitalStrike plugin, VitalLogger logger, PlayerManager playerManager)
      Constructs a new ToggleCommandHandler.
      Parameters:
      plugin - the VitalStrike plugin instance
      logger - the plugin's logger
      playerManager - the player manager instance
  • Method Details

    • handleCommand

      public boolean handleCommand(org.bukkit.command.CommandSender sender, String[] args)
      Handles the toggle command execution.
      Parameters:
      sender - the command sender
      args - the command arguments
      Returns:
      true if the command was handled successfully, false otherwise