PlayerInfoArgumentType

object PlayerInfoArgumentType : ArgumentType<PlayerInfo>

Resolves a tab-list player by name at parse time: invalid names fail during parse instead of inside the handler, and every consumer receives the same PlayerInfo instead of re-implementing the lookup.

Suggestions are the online player names from the command source.

Properties

Link copied to clipboard
open override val examples: Collection<String>

Functions

Link copied to clipboard
open override fun getExamples(): Collection<String>
Link copied to clipboard
open override fun <S> listSuggestions(context: CommandContext<S>, builder: SuggestionsBuilder): CompletableFuture<Suggestions>
Link copied to clipboard
open fun <S : Any?> parse(reader: StringReader?, source: S?): PlayerInfo?
open override fun parse(reader: StringReader): PlayerInfo