Class ToggleCommandHandler
java.lang.Object
stawa.vitalstrike.commands.handlers.ToggleCommandHandler
Handles toggle-related commands for the VitalStrike plugin. This class manages the enabling and
disabling of damage indicators for players.
-
Constructor Summary
ConstructorsConstructorDescriptionToggleCommandHandler(VitalStrike plugin, VitalLogger logger, PlayerManager playerManager) Constructs a new ToggleCommandHandler. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleCommand(org.bukkit.command.CommandSender sender, String[] args) Handles the toggle command execution.
-
Constructor Details
-
ToggleCommandHandler
Constructs a new ToggleCommandHandler.- Parameters:
plugin- the VitalStrike plugin instancelogger- the plugin's loggerplayerManager- the player manager instance
-
-
Method Details
-
handleCommand
Handles the toggle command execution.- Parameters:
sender- the command senderargs- the command arguments- Returns:
- true if the command was handled successfully, false otherwise
-