Skip to content

Update playerdata after change #72

@ChimpGamer

Description

@ChimpGamer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions