Command arguments

The command arguments are inserted into the function parameters in the original order

You can use default types for them or register custom command argument type.

Default arguments:

  • String

  • Int

  • UInt

  • Long

  • ULong

  • Short

  • UShort

  • Float

  • Double

  • Byte

  • UByte

  • Boolean

  • Player

  • OfflinePlayer

  • World

  • Material

Register custom argument:

commandManager.type(UUID::class) { UUID.fromString(it.arg) }

Last updated