-
Notifications
You must be signed in to change notification settings - Fork 0
Recommended Setup
You have several server networks, which are different projects, but you want to aggregate the player counts from each because they come from the same company and you consider them to form one large community.
Your architecture looks something like this:
- Project A: One BungeeCord -> 5 Spigot sub-servers
- Project B: One Velocity -> 3 Spigot sub-servers
- Project C: A standalone Spigot server
You’d like each of them to display the same player count.
First of all, you're not required to install the plugin on the Spigot sub-servers, as BungeeCord or Velocity already knows the correct player count.
You could send PING requests to each server by configuring them as sources, but if you have a lot of servers, this could become heavy and inefficient.
The ideal solution is to use a Redis server—a caching server that allows each server to register its player count in a fast and lightweight manner. Then, you simply configure a source that will fetch each server’s player count and sum them up.
To learn how to configure the plugin this way, go to this page.
In Redis, it's possible to configure automatic expiration on writes. So, each server regularly writes its player count, and in the event of a crash, the count will naturally expire, preventing false totals if the server shuts down unexpectedly. In the case of a normal shutdown, the server's count is properly removed.