ReloadCommand

Re-reads config.yml and applies the message formats.

Not annotated @PlayerOnly, and it never calls CommandContext.requirePlayer: reloading is an operator's job, and the console and RCON are where operators do it. The parent /lc carries a @PlayerOnly that nothing enforces - the parent literal has no executor of its own - so this node is reachable from the console today. Should that annotation ever be made to bite, it has to gate the parent's own executor rather than its children, or this command goes with it.

Constructors

Link copied to clipboard
constructor(plugin: LunaticChat, languageManager: LanguageManager, reloader: ConfigurationReloader)

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.