LunaticCommand

abstract class LunaticCommand(plugin: LunaticChat)

Abstract base class for all LunaticChat commands. Provides common functionality and enforces consistent command structure.

Inheritors

Constructors

Link copied to clipboard
constructor(plugin: LunaticChat)

Properties

Link copied to clipboard

Command aliases

Link copied to clipboard

Command description for help text

Link copied to clipboard

The primary command name

Link copied to clipboard

Required permission node, if any

Functions

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

Build the Brigadier command tree. Subclasses implement this to define arguments and execution logic.

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

Wraps the command builder with permission checks. Called by CommandRegistry during registration.