Class GiveItemCommand

java.lang.Object
stawa.vitalstrike.commands.GiveItemCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class GiveItemCommand extends Object implements 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 Details

    • GiveItemCommand

      public GiveItemCommand(VitalStrike plugin)
      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:
      onCommand in interface org.bukkit.command.CommandExecutor
      Parameters:
      sender - The command sender (must be a player)
      command - The command being executed
      label - The command label used
      args - Command arguments, optional [amount] between 1-64
      Returns:
      true if the command was successful, false otherwise