Skip to content

feat: add configurable server list for ping updates#412

Open
ikafly144 wants to merge 2 commits into
Syrent:masterfrom
ikafly144:ping-server-filter
Open

feat: add configurable server list for ping updates#412
ikafly144 wants to merge 2 commits into
Syrent:masterfrom
ikafly144:ping-server-filter

Conversation

@ikafly144
Copy link
Copy Markdown

This PR makes the servers counted towards the online players in the server ping configurable. The main motivation for this change is to avoid conflicts with the SayanVanish plugin, which typically occur when trying to implement this feature via external MOTD plugins.

Copilot AI review requested due to automatic review settings March 7, 2026 10:06
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a configurable servers list to the FeatureUpdatePing feature in the Velocity proxy module. When configured, only players from the specified servers are counted toward the online player count displayed in the server ping response. This is motivated by avoiding conflicts with external MOTD plugins when using the SayanVanish plugin.

Changes:

  • Added a servers constructor parameter to FeatureUpdatePing with @Configurable and @Comment annotations, allowing server admins to specify which backend servers should be counted.
  • Added filtering logic in the onProxyPing handler to count only players on the configured servers when the list is non-empty.
  • Updated the onlinePlayers value in the ping builder to use the filtered count.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants