Skip to content

Conversation

@tuanzisama
Copy link

Honestly, this PR includes some breaking changes.

I found the RequestProcessor class in the source code and thought you might have anticipated the potential need for adapting to other data sources in the future. So, I went ahead and refactored StatResult.

To accommodate potential asynchronous results, I wrapped StatResult<?> with a CompletableFuture. This will make plugins that depend on PlayerStats incompatible (maybe a deprecation warning would be appropriate).

HuskSync is a 'modern, cross-server player data synchronization system...' and it's currently really useful on the proxy server. It works well on my server. When I installed PlayerStats on the lobby server, stats generated on the survival server weren't syncing to Bukkit in real-time through this plugin. The plugin has an internal communication mechanism that almost instantly broadcasts stats from one server to others.

In this PR, I created a new processor to pull real-time data from HuskSync.

(I’m not a native English speaker, so the above translation might contain errors. Thanks for understanding!)

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.

1 participant