Class SmartCommand
java.lang.Object
de.goldmensch.commanddispatcher.command.SmartCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull Map<String[],SmartSubCommand>
protected boolean
void
registerSubCommand(@NotNull SmartSubCommand command, @NotNull String... args)
Registers a subcommand, the subcommand may occur only once with the same path!protected @NotNull Optional<SmartCommand.SubCommandEntity>
-
Constructor Details
-
SmartCommand
public SmartCommand()
-
-
Method Details
-
registerSubCommand
public void registerSubCommand(@NotNull @NotNull SmartSubCommand command, @NotNull @NotNull String... args)Registers a subcommand, the subcommand may occur only once with the same path!
Example: 'registerSubCommand(new AboutSub(ExecutorLevel.CONSOLE_PLAYER, ""), "about");'
- Parameters:
command
- The subcommand to be executedargs
- the complete path of the command including name
-
isValid
-
searchSub
@NotNull protected @NotNull Optional<SmartCommand.SubCommandEntity> searchSub(@NotNull @NotNull String[] args) -
getSubCommandMap
-