Package stawa.vitalstrike.commands
Class CommandManager
java.lang.Object
stawa.vitalstrike.commands.CommandManager
Manages all commands for the VitalStrike plugin.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandManager(VitalStrike plugin, VitalLogger logger, PlayerManager playerManager, PlayerStats playerStats, HelpManager helpManager) Constructs a new CommandManager. -
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) Handles the command.onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args) Handles tab completion for the plugin commands.
-
Constructor Details
-
CommandManager
public CommandManager(VitalStrike plugin, VitalLogger logger, PlayerManager playerManager, PlayerStats playerStats, HelpManager helpManager) Constructs a new CommandManager.- Parameters:
plugin- the VitalStrike plugin instancelogger- the loggerplayerManager- the player managerplayerStats- the player statshelpManager- 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 sendercommand- the commandlabel- the labelargs- 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 sendercommand- the commandalias- the aliasargs- the arguments- Returns:
- the list of completions
-