Closed wockhardt-wizard closed 4 months ago
There are a few options such as:
@Completer(
name = "bounty.set"
)
public List<String> bountyCompleter(CommandArguments arguments) {
return Arrays.asList("arg1", "arg2");
}
or
@Completer(
name = "bounty"
)
public List<String> bountyCompleter(CommandArguments arguments) {
if (arguments.isArgumentsEmpty()) {
return Arrays.asList("help", "bdc", "tutorial", "check", "list", "top", "stats", "set", "buy", "immunity", "whitelist");
}
String firstArg = arguments.getArgument(0);
if ("set".equals(firstArg)) {
return Arrays.asList("completer", "for", "set", "command");
}
// If you return null server may complete this as player names.
// Should return an empty list if you do not want any completer in any case.
return null;
}
Looks good, thank you !
The tab completer will work for every argument in the bounty.set command, how do i make the tab completer only work in one command instead of all of them