summaryrefslogtreecommitdiff
path: root/docs/src/guide/admin
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-01-24 04:40:54 +0900
committerSho Sakuma <me@m1sk9.dev>2026-01-24 04:40:54 +0900
commit3b14d0ea23da82d3936ca025bec51504f8255948 (patch)
tree084bd7c95f333763a5cdb6308ad15c6b560057c0 /docs/src/guide/admin
parentac80dc3ce71f9be0397442208cac80f6069eea03 (diff)
downloadLunaticChat-3b14d0ea23da82d3936ca025bec51504f8255948.tar.gz
LunaticChat-3b14d0ea23da82d3936ca025bec51504f8255948.tar.bz2
LunaticChat-3b14d0ea23da82d3936ca025bec51504f8255948.zip
docs: Add beta documents
Diffstat (limited to 'docs/src/guide/admin')
-rw-r--r--docs/src/guide/admin/cache.md41
-rw-r--r--docs/src/guide/admin/configuration.md180
-rw-r--r--docs/src/guide/admin/velocity.md13
3 files changed, 234 insertions, 0 deletions
diff --git a/docs/src/guide/admin/cache.md b/docs/src/guide/admin/cache.md
new file mode 100644
index 0000000..ec00455
--- /dev/null
+++ b/docs/src/guide/admin/cache.md
@@ -0,0 +1,41 @@
+# キャッシュシステム
+
+LunaticChat では,かな・ローマ字変換時のフレーズを自動でメモリ・ディスクにキャッシュするシステムが搭載されています.
+
+かな・ローマ字変換に関する情報は [こちら](../player/japanese-romanization.md) をご覧ください.
+
+## メモリキャッシュ
+
+LunaticChat は変換済みのフレーズをメモリ上にキャッシュし,再度同じフレーズが要求された際に高速に応答できるようにしています.
+
+このキャッシュは一時的であり,サーバー再起動時や設定した秒数毎にディスクキャッシュへ保存されます.
+
+## ディスクキャッシュ
+
+LunaticChat はメモリキャッシュの内容を定期的にディスクに保存します. これにより,サーバー再起動後もキャッシュ内容を保持できるようになっています.
+
+ディスクキャッシュとして使用されるファイルは [設定で変更できます](../admin/configuration.md#cachefilepath).
+
+## キャッシュの解放
+
+メモリキャッシュは,ディスクにキャッシュしたのち自動的に JVM のガベージコレクションにより解放されます.
+
+ディスクキャッシュは,手動でファイルを削除することで解放できます. 再起動時に LunaticChat は再度キャッシュファイルを作成します.
+
+::: warning パージ機能について
+
+LunaticChat では,キャッシュのパージ 機能は実装されていません.
+
+これはプレイヤー側にホストのファイルシステムを操作させることがセキュリティ上好ましくないためです.
+
+:::
+
+## キャッシュバージョン
+
+ディスクキャッシュに使用されるファイルには `version` フィールドが含まれており,LunaticChat のバージョンアップに伴うキャッシュフォーマットの変更に対応しています.
+
+バージョンが不一致の場合,LunaticChat はキャッシュファイルを **古い形式のキャッシュ** として認識し,内容を無視して新しい形式で再作成します.
+
+```json
+{"version":"1","entries":{}}
+```
diff --git a/docs/src/guide/admin/configuration.md b/docs/src/guide/admin/configuration.md
new file mode 100644
index 0000000..bf9b9e6
--- /dev/null
+++ b/docs/src/guide/admin/configuration.md
@@ -0,0 +1,180 @@
+# 設定
+
+```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`
+
+LunaticChat をデバッグモードで起動します.
+
+### `userSettingsFilePath`
+
+- Type: `string`
+- Default: `player-settings.yaml`
+
+LunaticChat がプレイヤーの設定を保存する YAML ファイルのパスを指定します.
+
+### `checkForUpdates`
+
+- Type: `boolean`
+- Default: `true`
+
+LunaticChat の起動時・権限を持ったプレイヤーがサーバに参加した際に,LunaticChat のアップデートを促すかどうか設定します.
+
+### `language`
+
+- Type: `string`
+- Default: `en`
+
+LunaticChat のプレイヤー向けメッセージの言語を指定します.
+
+### Supported languages:
+
+- `en`: English
+- `ja`: 日本語
+
+## Features Settings
+
+### `features.quickReplies.enabled`
+
+- Type: `boolean`
+- Default: `true`
+
+LunaticChat の [`/reply`](../../reference/commands/reply.md) コマンドによるクイックリプライ機能を有効にします.
+
+無効にすると [`/reply`](../../reference/commands/reply.md) コマンドは Paper に登録されず,使用できなくなります.
+
+### `features.japaneseConversion.enabled`
+
+- Type: `boolean`
+- Default: `false`
+
+ローマ字からひらがなへの変換機能を有効にします.
+
+### `features.japaneseConversion`
+
+#### `cache.maxEntries`
+
+- Type: `integer`
+- Default: `500`
+
+ローマ字変換のキャッシュに保存する最大エントリ数を指定します.
+
+この値を超えると,最も古いエントリから順に削除されます.
+
+値を高く設定すれば,変換のパフォーマンスが向上しますが,メモリ使用量・キャッシュファイルサイズも増加します.
+
+#### `cache.saveIntervalSeconds`
+
+- Type: `integer`
+- Default: `300`
+
+ローマ字変換のキャッシュをディスクに保存する間隔(秒)を指定します.
+
+#### `cache.filePath`
+
+- Type: `string`
+- Default: `conversion_cache.json`
+
+ローマ字変換のキャッシュを保存するファイルパスを指定します.
+
+ここで設定したパスは `plugins/LunaticChat/` ディレクトリを基準とした相対パスとして解釈されます.
+
+#### `api.timeout`
+
+- Type: `integer`
+- Default: `3000`
+
+ローマ字変換 API へのリクエストのタイムアウト時間(ミリ秒)を指定します.
+
+#### `api.retryAttempts`
+
+- Type: `integer`
+- Default: `2`
+
+ローマ字変換 API へのリクエストが失敗した場合の再試行回数を指定します.
+
+## Message Format Settings
+
+使用できるプレースホルダー:
+
+- `{sender}`: メッセージ送信者の名前
+- `{recipient}`: メッセージ受信者の名前
+- `{message}`: メッセージの内容
+
+### `messageFormat.directMessageFormat`
+
+- Type: `string`
+- Default: `§7[§e{sender} §7>> §e{recipient}§7] §f{message}`
+
+ダイレクトメッセージ( [`/tell`](../../reference/commands/tell.md) や [`/reply`](../../reference/commands/reply.md) コマンド)で送信されるメッセージのフォーマットを指定します.
diff --git a/docs/src/guide/admin/velocity.md b/docs/src/guide/admin/velocity.md
new file mode 100644
index 0000000..bc7f8d5
--- /dev/null
+++ b/docs/src/guide/admin/velocity.md
@@ -0,0 +1,13 @@
+# Velocity 連携 (クロスサーバーチャット) <Badge type="tip" text="v1.0.0" /> <Badge type="warning" text="試験的" />
+
+Velocity を使用して,プロキシサーバーを繋いだ Paper サーバー間のクロスサーバーチャットを行う機能です.
+
+::: warning 試験的機能
+
+この機能は現在,試験的に実装されており,今後のアップデートで仕様が変更される可能性があります.
+
+規模が大きい機能なので,一気に実装はせず段階的な展開を予定しています.
+
+詳しい実装計画は [ロードマップ (m1sk9/LunaticChat #54)](https://github.com/m1sk9/LunaticChat/issues/54) をご覧ください.
+
+:::