Interface HoneypotSubCommand
- All Known Implementing Classes:
HoneypotCreate,HoneypotGUI,HoneypotHelp,HoneypotHistory,HoneypotInfo,HoneypotList,HoneypotLocate,HoneypotReload,HoneypotRemove
public interface HoneypotSubCommand
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of the commandGets the required permissions to run the command.getSubcommands(org.bukkit.entity.Player p, String[] args) Gets all subcommands of the main command if any (Such as with the create or remove command)voidPerforms the command
-
Method Details
-
getName
String getName()Gets the name of the command- Returns:
- The String name
-
perform
Performs the command- Parameters:
p- The Player running the commandargs- Any arguments to pass- Throws:
IOException- Throws if any IO actions fail inside the perform command (Such as DB calls)
-
getSubcommands
Gets all subcommands of the main command if any (Such as with the create or remove command)- Parameters:
p- The Player running the commandargs- Any arguments to pass- Returns:
- A list of all subcommands as strings
-
getRequiredPermissions
List<HoneypotPermission> getRequiredPermissions()Gets the required permissions to run the command. May be multiple- Returns:
- A list of all subcommands as strings
-