diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-04-04 16:16:30 +0900 |
|---|---|---|
| committer | Sho Sakuma <me@m1sk9.dev> | 2026-04-04 16:20:28 +0900 |
| commit | e37153cde200ea5721bc14712c3e857edf11d79d (patch) | |
| tree | ec9521600315b4c39a481cb282f71bb5c414926e | |
| parent | c7aff8fbd0b04624b8291cf0362bed70471f46ae (diff) | |
| download | LunaticChat-e37153cde200ea5721bc14712c3e857edf11d79d.tar.gz LunaticChat-e37153cde200ea5721bc14712c3e857edf11d79d.tar.bz2 LunaticChat-e37153cde200ea5721bc14712c3e857edf11d79d.zip | |
fix(paper): register chat listener when only Japanese conversion is enabled
PlayerChatListener was not registered unless channel chat or Velocity
cross-server chat was enabled, causing romaji conversion to silently
not work when used standalone.
Co-Authored-By: Claude <noreply@anthropic.com>
| -rw-r--r-- | CHANGELOG.md | 25 | ||||
| -rw-r--r-- | platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/listener/EventListenerRegistry.kt | 5 |
2 files changed, 8 insertions, 22 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f7753e..73cf134 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,35 +4,20 @@ ### v1.0.0 -#### Announcement: Support for Nightly Releases - -- We have started distributing Nightly releases - - Whenever updates are made to `main` (the default branch), we will distribute the current build via GitHub Releases - - Since the Nightly version is a work-in-progress, it may be unstable or contain bugs. If you encounter any issues, please report them on GitHub Issues - -> [!WARNING] -> -> The Nightly version is not available on Modrinth - -#### New Features - - Paper 26.1 (Minecraft 26.1) is now supported. - Support for Paper 1.21.X, Folia 1.21.X (and later) has been dropped. - We have added warnings when running `/lc status` or `/lcv status`, or when logging in, if you are using the Nightly version. +- Fixed an issue where, while Romaji conversion was enabled, chat events were not registered under certain conditions, making Romaji conversion unavailable. +- We have started distributing Nightly releases + - Whenever updates are made to `main` (the default branch), we will distribute the current build via GitHub Releases + - Since the Nightly version is a work-in-progress, it may be unstable or contain bugs. If you encounter any issues, please report them on GitHub Issues + - **The Nightly version is not available on Modrinth**. ### v0.11.0 -#### Breaking Changes - - We have removed the chat mode implementation. - All chat messages sent after joining a channel will now appear in the channel chat. - -#### Features - - Clicking the notification message now displays the channel's status. - -#### Feature Improvements - - Optimization of internal logic. - We have improved the notification message that appears when you log in to the server while in a channel. - Added a delay to prevent other plugins from interfering with login notifications. diff --git a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/listener/EventListenerRegistry.kt b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/listener/EventListenerRegistry.kt index 84040b6..38b1b0c 100644 --- a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/listener/EventListenerRegistry.kt +++ b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/listener/EventListenerRegistry.kt @@ -42,7 +42,7 @@ object EventListenerRegistry { plugin, ) - // Register chat listener when channel chat is enabled OR velocity cross-server chat is enabled + // Register chat listener when channel chat, velocity cross-server chat, or Japanese conversion is enabled val shouldRegisterChatListener = ( services.channelManager != null && @@ -51,7 +51,8 @@ object EventListenerRegistry { ( configuration.features.velocityIntegration.enabled && configuration.features.velocityIntegration.crossServerGlobalChat - ) + ) || + services.romajiConverter != null if (shouldRegisterChatListener) { pluginManager.registerEvents( |
