Interface ParentCommand
public interface ParentCommand
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubCommand
(SubCommand subCommand) Add a subCommandgetName()
Get parent nameGet available subCommandsboolean
hasSubCommand
(String name) Check if a parent command has the target sub-commandvoid
sendSubCommands
(org.bukkit.command.CommandSender p) Send sub-commands list to a player This includes subCommands with showInList true only Can only see commands which they have permission for
-
Method Details
-
hasSubCommand
Check if a parent command has the target sub-command -
addSubCommand
Add a subCommand -
sendSubCommands
void sendSubCommands(org.bukkit.command.CommandSender p) Send sub-commands list to a player This includes subCommands with showInList true only Can only see commands which they have permission for -
getSubCommands
List<SubCommand> getSubCommands()Get available subCommands -
getName
String getName()Get parent name
-