Argument

annotation class Argument(val type: KClass<out Argument<*>> = ArgumentString::class)

Add an argument to a command.

Properties

Link copied to clipboard
val type: KClass<out Argument<*>>

The type of argument to parse with. You can specify anything that eventually extends net.minestom.server.command.builder.arguments.Argument.