packetevents icon indicating copy to clipboard operation
packetevents copied to clipboard

[Feat] bStats Sponge Support

Open Bram1903 opened this issue 4 months ago • 2 comments

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 to libs.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.

Bram1903 avatar Oct 15 '24 14:10 Bram1903