A fork of GriefPrevention that adds 3D subdivisions
GriefPrevention3D v19.0.5
Wiki: https://github.com/castledking/GriefPrevention3D/wiki
Back up GriefPreventionData before updating.
Faster large shaped claims
Large shaped edits could stall the server or consume excessive memory while extending a path around an existing claim. Several calculations scanned every block column inside the shape's bounding rectangle, even when most of that rectangle was outside the claim.
- Shape unions, cuts, overlap checks and containment checks use compact ranges. They no longer need to allocate a point for every claimed column or walk the entire bounding rectangle.
- Path extensions and claim merges use the same optimized geometry on Bukkit/Paper and Fabric. Merge-corridor width and connectivity checks also avoid block-by-block flood fills.
- Shaped subdivision checks remain exact. Concave gaps stay outside the claim, and rectangular subdivisions only one block wide still work inside shaped parents.
- Claims already at their minimum depth skip the automatic depth scan on Bukkit/Paper. This avoids collecting potentially thousands of chunk snapshots when no downward extension is possible.
A regression benchmark uses a real 427-corner coastline covering about 1.56 million block columns. Joining it to a large rectangle took approximately 15 ms with the new geometry; the previous routine exhausted the same 192 MiB test heap. This measures the geometry calculation, not a complete live-server interaction or the work performed by other plugins.
Editable tutorial links
The survival, creative and subdivision tutorial links can now be changed separately from their surrounding messages. All 16 bundled message files include these entries:
Messages:
SurvivalVideoURL: '&3&nbit.ly/mcgpuser&r'
CreativeVideoURL: '&3&nbit.ly/mcgpcrea&r'
SubdivisionVideoURL: '&3&nbit.ly/mcgpsub&r'
On Bukkit/Paper, edit the active file in plugins/GriefPreventionData/Lang/messages_<locale>.yml.
On Fabric, edit plugins/GriefPreventionData/messages.yml. Replace the default links with your own
URLs and run /gpreload after saving. Color codes are supported.
The configured links are used by the corresponding tutorial prompts and, on Bukkit/Paper, the survival welcome book. With per-player locales enabled on Bukkit/Paper, the URL follows the player's language file. Existing books already in inventories are not rewritten.
Keep {0} in SurvivalBasicsVideo2, CreativeBasicsVideo2, SubdivisionVideo2 and BookLink
where the link should appear. Existing customized help text is preserved.
Upstream cleanup
Synced upstream's removal of obsolete config, numeric material-ID and claim-filename migration
helpers. Unrecognized files in ClaimData are now skipped and logged rather than deleted or
automatically renamed. Very old installations that still need those conversions should first
upgrade through a release that provides them.
Upgrade notes
- Restart the server after replacing the jar.
/gpreloadapplies later message-file edits. - The new message keys are added with the existing tutorial URLs as defaults. No new config options or permission nodes are required.
- Current claim files keep the same format; existing shaped claims benefit without being redrawn.
- Both platforms continue to ship in one universal
GriefPrevention3D.jar. Fabric requires Fabric API.