summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-01-06 00:01:04 +0900
committerSho Sakuma <me@m1sk9.dev>2026-01-06 00:02:16 +0900
commit4a5d0a0f6216dc456064798b07fe9965859992d0 (patch)
tree9a2a669c15db84ec008716e1f0bdbea0048f56a7
parent596745a96f3ea7c633751ce883ad54b7d461e4f8 (diff)
downloadLunaticChat-4a5d0a0f6216dc456064798b07fe9965859992d0.tar.gz
LunaticChat-4a5d0a0f6216dc456064798b07fe9965859992d0.tar.bz2
LunaticChat-4a5d0a0f6216dc456064798b07fe9965859992d0.zip
chore: Add default config
-rw-r--r--platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt2
-rw-r--r--platform-paper/src/main/resources/config.yml60
-rw-r--r--platform-paper/src/main/resources/paper-plugin.yml2
3 files changed, 61 insertions, 3 deletions
diff --git a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt
index 302a207..b12e935 100644
--- a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt
+++ b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/ConfigManager.kt
@@ -6,7 +6,6 @@ import dev.m1sk9.lunaticChat.paper.config.key.VelocityConfig
import org.bukkit.configuration.file.FileConfiguration
object ConfigManager {
-
private var lunaticChatConfiguration: LunaticChatConfiguration? = null
fun getConfiguration(): LunaticChatConfiguration =
@@ -55,5 +54,4 @@ object ConfigManager {
lunaticChatConfiguration = loadedConfig
return loadedConfig
}
-
}
diff --git a/platform-paper/src/main/resources/config.yml b/platform-paper/src/main/resources/config.yml
new file mode 100644
index 0000000..e091954
--- /dev/null
+++ b/platform-paper/src/main/resources/config.yml
@@ -0,0 +1,60 @@
+# ----------------------------------------------
+# -------------- 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/docs/configuration
+# ----------------------------------------------
+
+# If enabled, Activate LunaticChat's debug mode, which provides detailed logging for troubleshooting.
+debug: false
+
+# ----------------------------------------------
+# ----------- Features Settings ------------
+# ----------------------------------------------
+
+features:
+ # If enabled, enables the conversion function from Roman letters to hiragana.
+ japaneseConversionEnabled: false
+ # If enabled, the quick reply feature via the /reply command will be activated.
+ quickRepliesEnabled: true
+
+# ----------------------------------------------
+# --------- 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
+# {message} - The content of the message
+# ----------------------------------------------
+
+messageFormat:
+ # Configure the format for direct messages sent via /tell or /msg
+ directMessageFormat: "&7[&e{sender} &7>>] &f{message}"
+ # Configure the format for cross-server messages
+ crossServerMessageFormat: "&7[&e{sender} &7(&b{server}&7)] &f{message}"
+ # Configure the format for cross-server direct messages
+ crossServerDirectMessageFormat: "&7[&e{sender}@&7(&b{server}&7) >>] &f{message}"
+
+# ----------------------------------------------
+# ----------- Velocity Settings ------------
+# ----------------------------------------------
+
+velocity:
+ # If enabled, Activate LunaticChat's Velocity integration features.
+ # This setting overrides all other features; if set to `false`, features such as cross-server chat will become unavailable.
+ enabled: false
+ # The name of the server as recognized by the Velocity proxy.
+ serverName: "s1"
+ # If enabled, allows cross-server chat functionality.
+ crossServerChatEnabled: false
+ # If enabled, allows cross-server direct messaging functionality.
+ crossServerDirectMessagesEnabled: false
diff --git a/platform-paper/src/main/resources/paper-plugin.yml b/platform-paper/src/main/resources/paper-plugin.yml
index de32eaa..b3aeacc 100644
--- a/platform-paper/src/main/resources/paper-plugin.yml
+++ b/platform-paper/src/main/resources/paper-plugin.yml
@@ -1,5 +1,5 @@
name: LunaticChat
-version: '0.0.0'
+version: ${version}
main: dev.m1sk9.lunaticChat.paper.LunaticChat
api-version: '1.21'
prefix: LunaticChat