Skip to content

Color Argument

Must be a team color, returns net.kyori.adventure.text.format.Style. Example:

Kotlin
StellarCommand("choose")
    .addColorArgument(name = "color")
    .addExecution<Player> {
        val color = getArgument<Style>("color")
        sender.sendMessage("Color chosen: ${color.color()!!.asHexString()}")
    }

Color Argument

Released under the MIT License.