LunaticSubCommand

A command node attached under a parent literal rather than registered with the server.

The permission gate is a declared property instead of an annotation read by reflection, so a subcommand that forgets it fails to compile rather than silently accepting everyone.

Inheritors

Constructors

Link copied to clipboard
constructor(plugin: LunaticChat)

Properties

Link copied to clipboard
abstract val literal: String

The literal this subcommand is typed as. Parents use it to look up help text, so it must be the same string build passes to Commands.literal.

Functions

Link copied to clipboard
abstract fun build(): LiteralArgumentBuilder<CommandSourceStack>

Builds the primary subcommand node, without the permission gate.

Link copied to clipboard
fun buildAll(): List<LiteralArgumentBuilder<CommandSourceStack>>

Builds the primary node and its aliases, each gated on permissionNode.