getSuggestions

open override fun getSuggestions(context: CommandContext<SharedSuggestionProvider>, builder: SuggestionsBuilder): CompletableFuture<Suggestions>

Generates username suggestions for the add subcommand.

This filters the server's visible player list by:

  1. Removing any usernames already present in the local friend list.

  2. Matching the remaining usernames against the last token typed in the command (case-insensitive substring match).

Return

a future that completes with the constructed suggestions

Parameters

context

the command context containing the input and source

builder

the suggestions builder to populate