Class ReloadSubCommand
java.lang.Object
com.zetaplugins.serverlinksz.commands.maincommand.subcommands.ReloadSubCommand
- All Implemented Interfaces:
SubCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanExecute the sub-command logic.getUsage()Provides the usage description for the sub-command.booleanhasPermission(org.bukkit.command.CommandSender sender) Checks if a sender has permission to use the sub-command.
-
Constructor Details
-
ReloadSubCommand
-
-
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
public boolean hasPermission(org.bukkit.command.CommandSender sender) 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
-