Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a different method to grab the DataObject classes. #2277

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

tastybento
Copy link
Member

Previously, when all Addons were Addons and men were men, the DataObjects could be tracked using the BentoBox custom ClassLoader. However, as Addons now can be and usually are loaded using the Bukkit Classloader, this is no longer possible. However, we can track them when a Database class is instantiated and use that. This relies on Addons declaring their database objects. If they have not when the migration command is run, then obviously they cannot be transfered.

Fixes #2276

Previously, when all Addons were Addons and men were men, the
DataObjects could be tracked using the BentoBox custom ClassLoader.
However, as Addons now can be and usually are loaded using the Bukkit
Classloader, this is no longer possible. However, we can track them when
a Database class is instantiated and use that. This relies on Addons
declaring their database objects. If they have not when the migration
command is run, then obviously they cannot be transfered.
@tastybento tastybento merged commit b672755 into develop Jan 20, 2024
1 check passed
Copy link

sonarcloud bot commented Jan 20, 2024

@tastybento tastybento deleted the Track_pladdon_databases_#2276 branch January 21, 2024 19:00
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.

Problem migrate JSON to MARIADB
1 participant