Class HeartsSubCommand
java.lang.Object
org.strassburger.lifestealz.commands.MainCommand.subcommands.HeartsSubCommand
- All Implemented Interfaces:
SubCommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Execute the sub-command logic.getUsage()
Provides the usage description for the sub-command.boolean
hasPermission
(org.bukkit.command.CommandSender sender) Checks if a sender has permission to use the sub-command.
-
Constructor Details
-
HeartsSubCommand
-
-
Method Details
-
execute
Description copied from interface:SubCommand
Execute the sub-command logic.- Specified by:
execute
in interfaceSubCommand
- Parameters:
sender
- Command senderargs
- Arguments passed to the command- Returns:
- true if successful, false otherwise
-
getUsage
Description copied from interface:SubCommand
Provides the usage description for the sub-command.- Specified by:
getUsage
in interfaceSubCommand
- Returns:
- A string representing command usage
-
hasPermission
public boolean hasPermission(org.bukkit.command.CommandSender sender) Description copied from interface:SubCommand
Checks if a sender has permission to use the sub-command.- Specified by:
hasPermission
in interfaceSubCommand
- Parameters:
sender
- The command sender- Returns:
- True if the sender has permission
-