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

Remove blocking web calls #124

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Conversation

GroobleDierne
Copy link

This PR hopefully fixes #121, I removed every instance of Bukkit.getOfflinePlayer(String name) and replaced them by checking if the player logged on at least once.

I tested with online players, offline players (without vault), town vaults, and nation vaults.
I think it is safer that you test this PR too as I may not be aware of all the side effects of my modification.

@GroobleDierne
Copy link
Author

I pushed this to my server and the lags seem to be gone. Here is a profiling result:
image
it's looking good 👍

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

Successfully merging this pull request may close these issues.

Server lag + error in console when someone uses /t claim
2 participants