minecrafter / RedisBungee

The leading player synchronization system for BungeeCord
https://www.spigotmc.org/resources/redisbungee.13494/
Eclipse Public License 1.0
157 stars 122 forks source link

Fix compatibility with other server ping plugins. #8

Closed stephan-gh closed 10 years ago

stephan-gh commented 10 years ago

At the moment if RedisBungee is used with a plugin like ServerListPlus then depending on the runtime environment it is possible that RedisBungee modifies the player count after the other plugins. If one of the other plugins uses the player count (for example: custom player slots) then it will only use the player count of the current BungeeCord and not the combined one.

To fix that we can use an event handler with lower priority for the ping event so RedisBungee can modify the player count before all other plugins. I have also changed so the online count is modified directly and the response is not completely cloned - not exactly sure why you were doing this but I can revert this if you want to keep it.