DictionaryArg

class DictionaryArg<T>(name: String, dictionary: Dictionary<T>) : CommandArgument<T>

Constructors

Link copied to clipboard
constructor(name: String, dictionary: Dictionary<T>)

Properties

Link copied to clipboard
open val greedy: Boolean

Whether this argument is greedy. If yes, it will consume all given strings until args.size - remainingArgs. Only one argument can be greedy in a path.

Link copied to clipboard
open val length: Int
Link copied to clipboard

Functions

Link copied to clipboard
open fun errorMessage(sender: CommandSender, value: String): Message
Link copied to clipboard
open override fun parse(sender: CommandSender, value: String): T?
Link copied to clipboard
open override fun tabComplete(sender: CommandSender, typing: String): List<String>
Link copied to clipboard
open override fun toString(): String