aikar / aikar/commands

Allow per-parameter tab completion

Open
#297 3 comments 0 reactions 0 assignees View on GitHub
core
Dominant language
Java
Stars
628
Forks
150
PR merge metrics
No merged PRs in 30d

Description

Hello. I define the following command:
```java
@Subcommand("create")
public CompletableFuture handlePunishmentCreateCommand(CommandSender sender, Player target, PunishmentType type, int duration, String reason) { //... }
```

and I see that this framework automatically includes the tab completion for `PunishmentType`, which is an enum, but does not automatically suggest players for the `target` parameter.
Now I need to register tab completion just for this exact parameter to make it functional, but I could not find any way to do so.

It would be nice if that could be implemented.

Kind regards,
Lukas

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.