Class GracePeriodSubcommand
java.lang.Object
com.zetaplugins.lifestealz.commands.MainCommand.subcommands.GracePeriodSubcommand
- All Implemented Interfaces:
SubCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(CommandSender sender, String[] args) Execute the sub-command logic.getUsage()Provides the usage description for the sub-command.booleanhasPermission(CommandSender sender) Checks if a sender has permission to use the sub-command.
-
Constructor Details
-
GracePeriodSubcommand
-
-
Method Details
-
execute
Description copied from interface:SubCommandExecute the sub-command logic.- Specified by:
executein interfaceSubCommand- Parameters:
sender- Command senderargs- Arguments passed to the command- Returns:
- true if successful, false otherwise
-
getUsage
Description copied from interface:SubCommandProvides the usage description for the sub-command.- Specified by:
getUsagein interfaceSubCommand- Returns:
- A string representing command usage
-
hasPermission
Description copied from interface:SubCommandChecks if a sender has permission to use the sub-command.- Specified by:
hasPermissionin interfaceSubCommand- Parameters:
sender- The command sender- Returns:
- True if the sender has permission
-