Package co.aikar.commands
Interface RootCommand
public interface RootCommand
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(BaseCommand command) default voidaddChildShared(List<BaseCommand> children, com.google.common.collect.SetMultimap<String, RegisteredCommand> subCommands, BaseCommand command) default BaseCommandexecute(CommandIssuer sender, String commandLabel, String[] args) default RegisteredCommanddefault BaseCommanddefault Stringcom.google.common.collect.SetMultimap<String,RegisteredCommand> getTabCompletions(CommandIssuer sender, String alias, String[] args) getTabCompletions(CommandIssuer sender, String alias, String[] args, boolean commandsOnly) getTabCompletions(CommandIssuer sender, String alias, String[] args, boolean commandsOnly, boolean isAsync) default Stringdefault StringgetUsage()default booleanhasAnyPermission(CommandIssuer issuer)
-
Method Details
-
addChild
-
getManager
-
getSubCommands
com.google.common.collect.SetMultimap<String,RegisteredCommand> getSubCommands() -
getChildren
-
getCommandName
-
getUniquePermission
- Returns:
- If this root command can be summarized to a single required permission node to use it, returns that value. If any RegisteredCommand is permission-less, or has multiple required permission nodes, null is returned.
-
hasAnyPermission
-
execute
-
getTabCompletions
-
getTabCompletions
default List<String> getTabCompletions(CommandIssuer sender, String alias, String[] args, boolean commandsOnly) -
getTabCompletions
default List<String> getTabCompletions(CommandIssuer sender, String alias, String[] args, boolean commandsOnly, boolean isAsync) -
getDefaultRegisteredCommand
-
getDefCommand
-
getDescription
-
getUsage
-