Plan icon indicating copy to clipboard operation
Plan copied to clipboard

[Feature Request] Add support for Paper's AsyncChat

Open NoltoxGit opened this issue 1 year ago • 2 comments

I would like to be able to..

Hello, Can you add the support for the Paper AsyncChatEvent and/or AsyncChatDecorateEvent in the configuration of your plugin please? Because you're currently using an old listener: org.bukkit.event.player.AsyncPlayerChatEvent.

Example for a new configuration:

# Use Paper's async Chat Event
use-async-chat: true/false

Thank you so much if you add this! :)

Is your feature request related to a problem? Please describe.

Because it seems better for users of the latest versions of Paper and other forks

NoltoxGit avatar Jan 22 '24 07:01 NoltoxGit

Only thing this listener is used for is AFK detection so I'm not 100% sure how useful it is, but I'll consider it.

AuroraLS3 avatar Jan 22 '24 16:01 AuroraLS3

Since this class isn't available before 1.16, it needs some fancy logic to have a 2nd listener class in a separate module and then choosing listener on the fly at runtime in order to not drop support for older versions.

https://docs.gradle.org/current/kotlin-dsl/gradle/org.gradle.api.plugins/-java-plugin-convention/disable-auto-target-jvm.html

AuroraLS3 avatar Apr 09 '24 13:04 AuroraLS3