Package stawa.vitalstrike.commands
Class GiveItemCommand
java.lang.Object
stawa.vitalstrike.commands.GiveItemCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
A command executor that handles the giving of Vital Awakening items to
players.
This command allows players with appropriate permissions to receive Vital
Awakening items,
which can be used for self-revival when knocked down.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GiveItemCommand
Creates a new GiveItemCommand instance.- Parameters:
plugin- The VitalStrike plugin instance- Throws:
IllegalStateException- if CustomItems initialization fails
-
-
Method Details
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) Executes the give command, providing Vital Awakening items to players. Usage: /vs vitalawakening [amount]- Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor- Parameters:
sender- The command sender (must be a player)command- The command being executedlabel- The command label usedargs- Command arguments, optional [amount] between 1-64- Returns:
- true if the command was successful, false otherwise
-