Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show proxy-wide online players in server ping #811

Open
wants to merge 2 commits into
base: dev/3.0.0
Choose a base branch
from

Conversation

BBaoVanC
Copy link

@BBaoVanC BBaoVanC commented Aug 2, 2022

This makes it so you can see online players on the entire proxy when hovering over the player count (only has an effect when ping passthrough is disabled, otherwise the backend server's player list is already used).

Preview is limited to 12 players, same as vanilla:

image

Players that have "Allow Server Listings" set to false show up as "Anonymous Player" (same as vanilla):

image

And when refreshing the server list, the list reshuffles.

@BBaoVanC
Copy link
Author

BBaoVanC commented Aug 3, 2022

Just realized that I was building on Java 18, and Stream#toList() was added in Java 16. So I'll fix that in a moment.

@BBaoVanC
Copy link
Author

BBaoVanC commented Aug 3, 2022

Just now tested it with 14 clients, the preview should be working properly. I updated the PR description with screenshots of it.

@BBaoVanC BBaoVanC requested a review from electronicboy August 3, 2022 04:30
@BBaoVanC BBaoVanC force-pushed the ping-sample-players branch from bdaad74 to 1505687 Compare August 3, 2022 23:03
@BBaoVanC BBaoVanC force-pushed the ping-sample-players branch from 8ba31f1 to 6d62a4c Compare August 20, 2022 23:38
@BBaoVanC BBaoVanC force-pushed the ping-sample-players branch from 6d62a4c to c6773fb Compare February 4, 2023 22:17
@BBaoVanC
Copy link
Author

BBaoVanC commented Feb 4, 2023

Rebased it, @electronicboy could you look at/review this?

@BBaoVanC BBaoVanC force-pushed the ping-sample-players branch from 907c3c6 to e01ff21 Compare April 6, 2023 02:08
@BBaoVanC BBaoVanC force-pushed the ping-sample-players branch from e01ff21 to c8d3280 Compare June 10, 2023 02:28
@4drian3d 4drian3d added the type: feature New feature or request label Jan 20, 2024
@BBaoVanC BBaoVanC force-pushed the ping-sample-players branch from c8d3280 to a6e1bf4 Compare December 27, 2024 07:40
@BBaoVanC BBaoVanC force-pushed the ping-sample-players branch from a6e1bf4 to 7c2b412 Compare December 27, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants