DebugCommand

class DebugCommand(plugin: LunaticChat, languageManager: LanguageManager, debugState: DebugState) : LunaticSubCommand(source)

Switches debug categories on and off while the server runs.

The change is deliberately volatile: config.yml is never rewritten, so a restart or /lc reload puts the operator's file back in charge. Writing it back would mean re-emitting a commented YAML document from a parsed tree, which loses every comment and every bit of formatting the operator put there - a high price for saving them one edit.

Constructors

Link copied to clipboard
constructor(plugin: LunaticChat, languageManager: LanguageManager, debugState: DebugState)

Properties

Link copied to clipboard
open override 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
open override 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.