Release 3.7.0
New In This Release
This adds compatibility for Paper 1.21.8.
Adds a new beta admin command purge regions
that deletes old islands by removing regions. This can also be used instead of having islands deleted. Set the BentoBox config.yml setting keep-previous-island-on-reset: true
and then run purge every so often. The advantage of having the region file delete is that they will be regenerated completely when revisited. This is a beta feature so only use if you have backups. It has been tested. Region purging is very fast.
Purge Logic
Here’s the logic used to determine whether an island can be purged :
High-Level Flow
- User runs the purge command with a number of days.
- The plugin scans region files and finds those not modified in the last N days.
- For each region, it finds all islands overlapping that region.
- For each island, it checks if the island can be deleted (purged).
- Only islands passing the deletion check are considered for purging.
Detailed Purge Eligibility Logic
An island cannot be deleted (i.e., is protected from purge) if any of the following are true:
- Island is marked as purge protected
- Island is a spawn island
- Island is not owned
- Island level is too high
- If the "Level" addon is present, and the level is higher than BentoBox's level in config.yml is then the island is protected. default is is 10.
- Owner or any team member has logged in recently
Islands That Can Be Deleted
- If none of the above protections apply, the island can be deleted.
- Exception: If the island is already marked as deleted it can always be deleted regardless of other checks.
In short: An island is eligible for purge if it is not protected, not spawn, is owned, is below the level threshold, and no member has logged in recently - unless it is already marked as deleted, in which case it can always be purged.
What is deleted
If all the islands in a region can be deleted, then the following is deleted:
- Region files (.mca)
- World player files in the world - this will mean that if they log in they will spawn in the main world
- Entity or POI files related to the region
- Island records in the BentoBox database
Compatibility
✔️ Minecraft 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
✔️ Java 21
Upgrading
- As always, take backups just in case. (Make a copy of everything!)
- Stop the server
- Replace the BentoBox jar with this one
- Move or delete locale files
- Restart the server
- You should be good to go!
Legend
- 🔡 locale files may need to be regenerated or updated.
- ⚙️ config options have been removed, renamed or added.
- 🔺 special attention needed.
What's Changed
- 🔡 Update es.yml by @tastybento in #2701
- Initial cooldown click approach by @tastybento in #2703
- Purge improvements by @tastybento in #2706
- 2636 purge improvements by @tastybento in #2705
- Update Mythic Mobs to 5.9.5 by @tastybento in #2707
- Add 1.21.8 support by @tastybento in #2708
- 🔡 Updated translations to include purging command and other updates by @tastybento in #2709
- Version 3.7.0 by @tastybento in #2702
Full Changelog: 3.6.0...3.7.0