-
Notifications
You must be signed in to change notification settings - Fork 302
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
Improve world regeneration command. #2799
base: main
Are you sure you want to change the base?
Conversation
…t to keep when deleting a world.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested yet, but here are some pointers based on looking at the code changes.
@nicegamer7 @zax71, if you all happen to have time, can help to try it out.
src/main/java/com/onarandombox/MultiverseCore/enums/KeepWorld.java
Outdated
Show resolved
Hide resolved
src/main/java/com/onarandombox/MultiverseCore/api/MVWorldManager.java
Outdated
Show resolved
Hide resolved
- Add an overload method for choosing what to delete in MVWorldManager#deleteWorld - Deprecated deleteWorld method - Renamed KeepWorld to WorldDeleteMode
If you do `/mv regen worldName -s --keep-gamerules`, the plugin will think that "--keep-gamerules" is a seed we're supplying. That shouldn't happen.
hi |
We are trying to get development back on track internally. As soon as we can review the code as a team this will get merged :) |
thanks sir |
Any update in this case? I would greatly appreciate this improvement :D |
Fixes #2783, also fixes an unwanted behaviour where the spawn on regenerated worlds stays the same when providing a new seed.
When fixing #2783, I don't know if I'm allowed to modify the classes in the API package. If this shouldn't happen, we could always make the
deleteWorldFolder
boolean to keep the paper config instead of deleting all files in the directory if set to false.