plan-player-analytics / Plan

Player Analytics plugin for Minecraft Server platforms - View player activity of your server with ease. :calendar:

Home Page:https://www.spigotmc.org/resources/plan-player-analytics.32536/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Add support for Paper's AsyncChat

NoltoxGit opened this issue · 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

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.

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