SimpleScore icon indicating copy to clipboard operation
SimpleScore copied to clipboard

Update playerdata after change

Open ChimpGamer opened this issue 1 year ago • 0 comments

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

ChimpGamer avatar Jan 13 '24 23:01 ChimpGamer