Skip to content

Conversation

@R00tB33rMan
Copy link

This PR attempts to implement Folia support into PlayerVaultsX with various safety checks to ensure the following (feasible) accountances are met:

  • The PR needs to account for multiple players attempting to access vaults at the same time, via any command, sign, or API.
  • The PR needs to ensure that there's no way to have race conditions or deadlocks as result of either the current code or a result of changes to try to make it support folia.

Of course, this implements the generic "scheduler" modifications, whilst ensuring other areas of the code in various other PRs were also accounted for. In addition, I've implemented a "locking" mechanism that prevents races, such as two threads loading/creating different Inventory instances for the same vault at the same time.

Feel free to let me know if you have any additional comments, concerns, or questions. I am more than happy to improve upon this PR if you are not quite satisfied.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants