summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-03-15 01:48:50 +0900
committerSho Sakuma <me@m1sk9.dev>2026-03-15 01:49:02 +0900
commita8c2750037c08c25855961ded7fc9f1c15e1b2f5 (patch)
treeb6363b91f73c5db2b147fe5cd59e7ef3ff3e781a
parent7b5ce9987a2ae4ba726d90bdd5213009ad2935d1 (diff)
downloadLunaticChat-a8c2750037c08c25855961ded7fc9f1c15e1b2f5.tar.gz
LunaticChat-a8c2750037c08c25855961ded7fc9f1c15e1b2f5.tar.bz2
LunaticChat-a8c2750037c08c25855961ded7fc9f1c15e1b2f5.zip
fix: correct language key and remove unused parameter in channel handling
- Fix invalid language key "general.formattedMessage" to "general.spyMessage" in ChannelMessageHandler - Remove unused romajiConverter parameter from initializeChannelManager - Update KDoc @throws to match ChannelAlreadyExistsException - Reorganize CHANGELOG for v1.0.0
-rw-r--r--CHANGELOG.md13
-rw-r--r--platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/ServiceInitializer.kt3
-rw-r--r--platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/channel/ChannelManager.kt2
-rw-r--r--platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/handler/ChannelMessageHandler.kt2
4 files changed, 14 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c92825c..30a5707 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,11 +1,20 @@
# LunaticChat Changelog
-## v0
+## v1
+
+### v1.0.0 (Unreleased)
+
+#### Features
-### v0.10.2
+- Paper 26.1 (Minecraft 26.1) is now supported.
+ - Support for Paper 1.21.X, Folia 1.21.X (and later) has been dropped.
+
+#### Feature Improvements
- Optimization of internal logic.
+## v0
+
### v0.10.1
- Codecov was introduced to expand test coverage.
diff --git a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/ServiceInitializer.kt b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/ServiceInitializer.kt
index 2d237e1..b732a9e 100644
--- a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/ServiceInitializer.kt
+++ b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/ServiceInitializer.kt
@@ -99,7 +99,7 @@ class ServiceInitializer(
// 4. Initialize channel manager, membership manager, chat mode manager, channel message handler, and notification handler
val channelComponents =
if (configuration.features.channelChat.enabled) {
- initializeChannelManager(playerSettingsManager, romajiConverter, languageManager)
+ initializeChannelManager(playerSettingsManager, languageManager)
} else {
null
}
@@ -217,7 +217,6 @@ class ServiceInitializer(
*/
private fun initializeChannelManager(
settingsManager: PlayerSettingsManager,
- romajiConverter: RomanjiConverter?,
languageManager: LanguageManager,
): ChannelComponents {
val channelsFile = plugin.dataFolder.resolve("channels.json").toPath()
diff --git a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/channel/ChannelManager.kt b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/channel/ChannelManager.kt
index 998414f..ffc6e26 100644
--- a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/channel/ChannelManager.kt
+++ b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/channel/ChannelManager.kt
@@ -54,7 +54,7 @@ class ChannelManager(
*
* @param channel The channel to create.
* @return Result containing the created channel or an error if the channel already exists.
- * @throws ChannelNotFoundException if a channel with the same ID already exists.
+ * @throws ChannelAlreadyExistsException if a channel with the same ID already exists.
* @throws ChannelLimitExceededException if the server has reached the maximum channel limit.
*/
fun createChannel(channel: Channel): Result<Channel> {
diff --git a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/handler/ChannelMessageHandler.kt b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/handler/ChannelMessageHandler.kt
index 28a306c..800e78a 100644
--- a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/handler/ChannelMessageHandler.kt
+++ b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/chat/handler/ChannelMessageHandler.kt
@@ -51,7 +51,7 @@ class ChannelMessageHandler(
it.sendMessage(
formattedMessage.hoverEvent(
HoverEvent.showText(
- Component.text(languageManager.getMessage("general.formattedMessage")),
+ Component.text(languageManager.getMessage("general.spyMessage")),
),
),
)