-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
So I'm attempting to add suggestions to the commands like so
public class Commands {
public static void register(PluginCommand command, Commodore commodore) {
LiteralArgumentBuilder<Object> commandBuild = LiteralArgumentBuilder.literal("foo")
.then(
RequiredArgumentBuilder.argument("bar", StringArgumentType.string())
.suggests((context, builder) -> {
builder.suggest("bara");
builder.suggest("barb");
return builder.buildFuture();
})
);
commodore.register(command, commandBuild);
}
}
However when doing so, the only time a player is able to actually properly use the tab completion is when you reload the server while the players are online. If a player is to (re)join in, then it requires a reload in order for them to tab complete
Metadata
Metadata
Assignees
Labels
No labels