r4g3baby / SimpleScore

A simple animated scoreboard plugin for your minecraft server.
https://www.spigotmc.org/resources/simplescore.23243/
MIT License
68 stars 32 forks source link

Update playerdata after change #72

Open ChimpGamer opened 7 months ago

ChimpGamer commented 7 months ago

Plugin Version

v3.12.6

Server Version

git-Paper-381 (MC: 1.20.4)

Describe the Bug

Currently the playerdata is updated on the PlayerQuitEvent and loaded on the AsyncPlayerPreLoginEvent. So it sometimes happens that the data isn't saved before it is loaded again when switching to another server. It would be better to just save the data async as soon as there has been a change e.g. toggle to avoid this issue.

Relevant Log Output

No response