diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-01-17 11:49:08 +0900 |
|---|---|---|
| committer | Sho Sakuma <me@m1sk9.dev> | 2026-01-17 11:49:08 +0900 |
| commit | 1926a42d51a1f82f60535a7a6d06100b2af951ef (patch) | |
| tree | 737b1bf409e09814b9ad6be166e36622a0193263 /platform-paper | |
| parent | 85b01f94928dc17e8748e97e8bccc2b109768ecb (diff) | |
| download | LunaticChat-1926a42d51a1f82f60535a7a6d06100b2af951ef.tar.gz LunaticChat-1926a42d51a1f82f60535a7a6d06100b2af951ef.tar.bz2 LunaticChat-1926a42d51a1f82f60535a7a6d06100b2af951ef.zip | |
feat: Add `checkForUpdates` config value
Diffstat (limited to 'platform-paper')
3 files changed, 5 insertions, 0 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 8580504..5f3a1b0 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 @@ -53,6 +53,7 @@ object ConfigManager { )!!, ), debug = configFile.getBoolean("debug", false), + checkForUpdates = configFile.getBoolean("checkForUpdates", false), userSettingsFilePath = configFile.getString( "userSettingsFilePath", diff --git a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/LunaticChatConfiguration.kt b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/LunaticChatConfiguration.kt index e94687f..0dea2ac 100644 --- a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/LunaticChatConfiguration.kt +++ b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/config/LunaticChatConfiguration.kt @@ -8,4 +8,5 @@ data class LunaticChatConfiguration( val messageFormat: MessageFormatConfig, val debug: Boolean = false, val userSettingsFilePath: String = "player-settings.yaml", + val checkForUpdates: Boolean = true, ) diff --git a/platform-paper/src/main/resources/config.yml b/platform-paper/src/main/resources/config.yml index f1ebe64..e6a372d 100644 --- a/platform-paper/src/main/resources/config.yml +++ b/platform-paper/src/main/resources/config.yml @@ -18,6 +18,9 @@ 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 + # ---------------------------------------------- # ----------- Features Settings ------------ # ---------------------------------------------- |
