Skip to content

Issue with suggestions #2

@DevonPalma

Description

@DevonPalma

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions