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.entity.Player p) Send sub-commands list to a player This includes subCommands with showInList true only He can see only commands which he have permission
-
Method Details
-
hasSubCommand
Check if a parent command has the target sub-command -
addSubCommand
Add a subCommand -
sendSubCommands
void sendSubCommands(org.bukkit.entity.Player p) Send sub-commands list to a player This includes subCommands with showInList true only He can see only commands which he have permission -
getSubCommands
List<SubCommand> getSubCommands()Get available subCommands -
getName
String getName()Get parent name
-