diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-01-24 05:01:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-24 05:01:27 +0900 |
| commit | e3387a401c6d0d094b3afa734558e9257465a42b (patch) | |
| tree | 4202c404fc72249f117162a37a573bcec274d555 /docs/src/en/guide/admin/configuration.md | |
| parent | ac80dc3ce71f9be0397442208cac80f6069eea03 (diff) | |
| parent | f6b0baf90c20a1d3b0cd53629102883b4bd913c6 (diff) | |
| download | LunaticChat-0.5.0.tar.gz LunaticChat-0.5.0.tar.bz2 LunaticChat-0.5.0.zip | |
Merge pull request #65 from m1sk9/chore/release-beta-stagev0.5.0
chore: Release to beta stage
Diffstat (limited to 'docs/src/en/guide/admin/configuration.md')
| -rw-r--r-- | docs/src/en/guide/admin/configuration.md | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/docs/src/en/guide/admin/configuration.md b/docs/src/en/guide/admin/configuration.md new file mode 100644 index 0000000..1fdf5b5 --- /dev/null +++ b/docs/src/en/guide/admin/configuration.md @@ -0,0 +1,180 @@ +# Configuration + +```yaml +# ---------------------------------------------- +# -------------- LunaticChat --------------- +# ---------------------------------------------- +# +# Docs: https://lc.m1sk9.dev +# GitHub: https://github.com/m1sk9/LunaticChat +# +# This configuration file is for customizing LunaticChat's behavior. +# Please specify appropriate values to ensure LunaticChat functions correctly. +# +# For detailed configuration options, please refer to the documentation: +# https://lc.m1sk9.dev/guide/configuration +# ---------------------------------------------- + +# If enabled, Activate LunaticChat's debug mode, which provides detailed logging for troubleshooting. +debug: false + +# Path to the YAML file storing player settings +userSettingsFilePath: "player-settings.yaml" + +# If enabled, LunaticChat will check for updates on startup. +checkForUpdates: true + +# Plugin Configuration Language. This setting applies only to player feedback and does not affect plugin logs or similar outputs. +language: "en" + +# ---------------------------------------------- +# ----------- Features Settings ------------ +# ---------------------------------------------- + +features: + quickReplies: + # If enabled, the quick reply feature via the /reply command will be activated. + enabled: true + japaneseConversion: + # If enabled, enables the conversion function from Roman letters to hiragana. + enabled: false + cache: + # Specifies the maximum number of entries to store in the Romanization conversion cache. + maxEntries: 500 + # Specify the interval (in seconds) for saving the Romanization conversion cache to disk. + saveIntervalSeconds: 300 + # Specify the file path where the cache for Romanization conversion is saved. + filePath: "conversion_cache.json" + api: + # Specify the timeout duration (in milliseconds) for API requests to the Romanization conversion service. + timeout: 3000 + # Specify the number of retry attempts for failed API requests to the Romanization conversion service. + retryAttempts: 2 + +# ---------------------------------------------- +# --------- Message Format Settings -------- +# ---------------------------------------------- +# +# Customize the format of various chat messages here. +# You can use placeholders such as {sender}, {message}, etc. +# +# {sender} - The name of the message sender +# {recipient} - The name of the message recipient +# {message} - The content of the message +# ---------------------------------------------- + +messageFormat: + # Configure the format for direct messages sent via /tell or /msg + directMessageFormat: "§7[§e{sender} §7>> §e{recipient}§7] §f{message}" +``` + +## General Settings + +### `debug` + +- Type: `boolean` +- Default: `false` + +Starts LunaticChat in debug mode. + +### `userSettingsFilePath` + +- Type: `string` +- Default: `player-settings.yaml` + +Specifies the path to the YAML file where LunaticChat saves player settings. + +### `checkForUpdates` + +- Type: `boolean` +- Default: `true` + +Configures whether to prompt for LunaticChat updates at startup and when players with the required permissions join the server. + +### `language` + +- Type: `string` +- Default: `en` + +Specifies the language for LunaticChat's player-facing messages. + +### Supported languages: + +- `en`: English +- `ja`: Japanese (日本語) + +## Features Settings + +### `features.quickReplies.enabled` + +- Type: `boolean` +- Default: `true` + +Enables the quick reply feature via the [`/reply`](../../reference/commands/reply.md) command in LunaticChat. + +When disabled, the [`/reply`](../../reference/commands/reply.md) command will not be registered with Paper and cannot be used. + +### `features.japaneseConversion.enabled` + +- Type: `boolean` +- Default: `false` + +Enables the conversion feature from romaji to hiragana. + +### `features.japaneseConversion` + +#### `cache.maxEntries` + +- Type: `integer` +- Default: `500` + +Specifies the maximum number of entries to store in the romanization conversion cache. + +When this value is exceeded, the oldest entries are deleted first. + +Setting a higher value improves conversion performance, but also increases memory usage and cache file size. + +#### `cache.saveIntervalSeconds` + +- Type: `integer` +- Default: `300` + +Specifies the interval (in seconds) for saving the romanization conversion cache to disk. + +#### `cache.filePath` + +- Type: `string` +- Default: `conversion_cache.json` + +Specifies the file path where the romanization conversion cache is saved. + +The path set here is interpreted as a relative path from the `plugins/LunaticChat/` directory. + +#### `api.timeout` + +- Type: `integer` +- Default: `3000` + +Specifies the timeout duration (in milliseconds) for API requests to the romanization conversion service. + +#### `api.retryAttempts` + +- Type: `integer` +- Default: `2` + +Specifies the number of retry attempts for failed API requests to the romanization conversion service. + +## Message Format Settings + +Available placeholders: + +- `{sender}`: Name of the message sender +- `{recipient}`: Name of the message recipient +- `{message}`: Content of the message + +### `messageFormat.directMessageFormat` + +- Type: `string` +- Default: `§7[§e{sender} §7>> §e{recipient}§7] §f{message}` + +Specifies the format for messages sent via direct message ([`/tell`](../../reference/commands/tell.md) or [`/reply`](../../reference/commands/reply.md) commands). |
