diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-08-30 13:54:28 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-30 13:54:28 +0900 |
| commit | b697f1cc341cbd9740daa2249c566f1b6bf1952d (patch) | |
| tree | 6d4d14a5f6cc07d28d8b85fdaedc32496e6f5988 /website/src/docs/features | |
| parent | 6e267a6a0426a5290c8f689c8333f1e9b35e87b7 (diff) | |
| parent | ebdb8d1940b41bab60d201eb6b0cd6f05efbc6ac (diff) | |
| download | LunaticChat-b697f1cc341cbd9740daa2249c566f1b6bf1952d.tar.gz LunaticChat-b697f1cc341cbd9740daa2249c566f1b6bf1952d.tar.bz2 LunaticChat-b697f1cc341cbd9740daa2249c566f1b6bf1952d.zip | |
Merge pull request #293 from m1sk9/feat/config-reload
feat: Add `/lc reload` command
Diffstat (limited to 'website/src/docs/features')
| -rw-r--r-- | website/src/docs/features/admin.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/website/src/docs/features/admin.md b/website/src/docs/features/admin.md index 3f71dcc..531f2e0 100644 --- a/website/src/docs/features/admin.md +++ b/website/src/docs/features/admin.md @@ -22,6 +22,26 @@ Displayed information: - Configuration values (debug mode, update checking, language) - Links to GitHub, Modrinth, and documentation +## Configuration Reload (`/lc reload`) <Badge type="tip" text="v1.4.0~" /> + +Re-read `config.yml` without restarting the server. + +``` +/lc reload +``` + +Only the [`messageFormat`](/docs/reference/message-format) settings are applied. Everything else in `config.yml` decides something the plugin settles at startup, so the command lists the changed settings that still need a restart instead of pretending they took effect. + +``` +[LC] Reloaded config.yml, but some of the changes need a server restart to take effect. +``` + +The reply says only whether what you edited is in effect. Which settings moved is written to the server log. + +- **Permission**: `lunaticchat.command.lc.reload` (default: op). Usable from the console and RCON +- A `config.yml` the plugin cannot read in full is refused: every unreadable setting is named at once and the running configuration is kept. This is stricter than startup, which falls a single unreadable setting back to its default so the server can come up +- Every reload is written to the server log, so a format change can be dated later. The file is read off the main thread, and an RCON session closes before the reply reaches it, so RCON callers read the outcome from the log rather than from the command output + ## Spy Mode Players with the `lunaticchat.spy` permission (default: op) can view both the direct messages and the channel messages sent on the server. |
