diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-02-10 16:00:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-10 16:00:16 +0900 |
| commit | 0dcdbc0f718fe95a8e5cc0750a8b111d9e5aa67e (patch) | |
| tree | f26f55c3267c474c6c2d7155b8215ec84d46df17 | |
| parent | 5655f2dedc04d9490a47603a822695311b83d2e2 (diff) | |
| parent | b4d37b7be050420bae1062e3a8dc77c4de9caf19 (diff) | |
| download | LunaticChat-0dcdbc0f718fe95a8e5cc0750a8b111d9e5aa67e.tar.gz LunaticChat-0dcdbc0f718fe95a8e5cc0750a8b111d9e5aa67e.tar.bz2 LunaticChat-0dcdbc0f718fe95a8e5cc0750a8b111d9e5aa67e.zip | |
Merge pull request #97 from m1sk9/docs/clarify-plugin-parameter-type
docs: Add clarifying comment for plugin parameter type
| -rw-r--r-- | platform-velocity/src/main/kotlin/dev/m1sk9/lunaticChat/velocity/messaging/PluginMessageHandler.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform-velocity/src/main/kotlin/dev/m1sk9/lunaticChat/velocity/messaging/PluginMessageHandler.kt b/platform-velocity/src/main/kotlin/dev/m1sk9/lunaticChat/velocity/messaging/PluginMessageHandler.kt index fb69fa4..74da9f2 100644 --- a/platform-velocity/src/main/kotlin/dev/m1sk9/lunaticChat/velocity/messaging/PluginMessageHandler.kt +++ b/platform-velocity/src/main/kotlin/dev/m1sk9/lunaticChat/velocity/messaging/PluginMessageHandler.kt @@ -14,6 +14,12 @@ import org.slf4j.Logger * Handles plugin messages from Paper servers */ class PluginMessageHandler( + /** + * Plugin instance used for event registration. + * Type is [Any] because Velocity's EventManager.register() accepts Object. + * Could be made generic, but provides little practical benefit since the API itself is not type-safe. + * Typically the main plugin instance is passed here. + */ private val plugin: Any, private val server: ProxyServer, private val logger: Logger, |
