packetevents
packetevents copied to clipboard
[Feat] bStats Sponge Support
Overview
This pull request introduces bStats support for the Sponge platform and updates the bStats version for all other modules within PacketEvents. While updating my AntiHealthIndicator plugin to support Sponge (thanks to PacketEvents adding support), I noticed that PacketEvents lacked bStats integration for Sponge and was also using an outdated bStats version in other modules. This PR addresses both issues.
Changes
- [x] Added bStats support for Sponge.
- [x] Updated bStats version across all modules.
- [x] Switched to shading bStats via Gradle, instead of copying the
Metrics
class into the codebase. - [x] Refactored Velocity's bStats initialization to use dependency injection, which is in line with recent changes in the bStats velocity class.
- [x] Moved the Sponge Gradle plugin version specification from
build.gradle.kts
tolibs.versions.toml
for better dependency management. - [x] Adjusted the placement of the plugin started debug message in the Velocity module to occur when the plugin is actually initialized.