Argument Path
class ArgumentPath<T : CommandContext>(val senderArgument: SenderType<*>, val arguments: List<Pair<String, CommandArgument<*>>>, val permission: List<Permission> = emptyList(), contextBuilder: (Map<String, Any?>) -> T, val ownExecutor: CommandContextExecutor<T>? = null)
Constructors
Link copied to clipboard
constructor(senderArgument: SenderType<*>, arguments: List<Pair<String, CommandArgument<*>>>, permission: List<Permission> = emptyList(), contextBuilder: (Map<String, Any?>) -> T, ownExecutor: CommandContextExecutor<T>? = null)
Functions
Link copied to clipboard
fun accumulateArguments(argIndex: Int, givenArgs: List<String>, commandArguments: List<CommandArgument<*>>, greedyPosition: Int): Either<String, Int>
Link copied to clipboard
fun accumulateArguments0(argIndex: Int, givenArgs: List<String>, commandArguments: List<CommandArgument<*>>, greedyPosition: Int): Either<String, Int>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks if this path matches the input until the end of the input. This is only used for tabcompletes.
Link copied to clipboard