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.
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