Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
A fork of GriefPrevention that adds 3D subdivisions
GriefPrevention3D v19.0.6
Wiki: https://github.com/castledking/GriefPrevention3D/wiki
Back up GriefPreventionData before updating.
Fabric: Restore Nature
The Restore Nature feature has been ported to Fabric, bringing full parity with Paper and Spigot for repairing griefed terrain and returning areas to their natural state.
/restorenature(/rn,/aclaim restore): Switches the golden shovel into restoration mode. Right-clicking a block inspects and restores a 5-block radius column (from the world's minimum to maximum height) back to natural terrain./restorenatureaggressive(/rna,/aclaim restore aggressive): Switches to aggressive restoration mode. In addition to standard cleanup, this mode overrides claim boundaries, strips player-placed ores and bedrock, and clears tree canopies (leaves and logs)./restorenaturefill [radius](/rnf,/aclaim restore fill [radius]): Switches to fill mode with a custom radius between 1 and 10 blocks (default 2), filling holes and hollowed areas in the terrain./basicclaims(/bc): Exits any active restoration mode and returns the shovel back to standard claim creation.
Restoration behavior
- Asynchronous column scan: Terrain processing runs off the main thread. It samples the entire vertical column, strips player-placed blocks (such as chests, crafting tables, furnaces, doors, rails, wool, planks, slabs, stairs, and torches), removes floating blocks (suspended dirt, snow, or logs), and knocks down thin unnatural walls.
- Natural fill and surface repair: Terrain holes beneath the surface level are filled in using the dimension's base material (netherrack in the Nether, end stone in the End, dirt in the Overworld). The natural surface block (grass block, sand, red sand, or mycelium) is restored based on the biome.
- Claim respect: Standard restoration skips any block located within an existing claim. Aggressive mode can modify claimed blocks.
- Entity protection: Players and animals standing within the restoration zone have air cleared at their feet and head to prevent suffocation. Unprotected item drops and hanging entities (item frames, paintings) in the zone are removed.
- Visual boundary: After restoration completes on the server, a 5-second glowing boundary preview with lime glazed terracotta corner markers and emerald side markers (matching Paper) outlines the restored zone for the user.
New Fabric commands & permissions
| Command | Permission | Default | What it does |
|---|---|---|---|
/restorenature (/rn, /aclaim restore) |
griefprevention.restorenature |
op | Switches the shovel tool to standard restoration mode |
/restorenatureaggressive (/rna, /aclaim restore aggressive) |
griefprevention.restorenatureaggressive |
op | Switches the shovel tool to aggressive restoration mode |
/restorenaturefill [radius] (/rnf, /aclaim restore fill [radius]) |
griefprevention.restorenatureaggressive |
op | Switches the shovel tool to fill mode with radius 1–10 |
/gpglow [on|off|toggle] (/claimglow) |
griefprevention.visualize |
all | Toggles glowing boundary visualization on or off |
Boundary visualizations: /gpglow toggle & surface fixes
/gpglow toggleon Fabric and Paper: Fabric now supports/gpglow(/claimglow) to enable or disable glowing boundary display entities (/gpglow [on|off|toggle]). The setting is persisted toVisualizations.Glowinconfig.ymlwhile preserving comments, and toggling it off immediately despawns active glowing entities. Paper's/gpglowcommand handler now also accepts/gpglow toggledirectly.- Single green glow & consistent blocks: Aligned Fabric restore nature markers with Paper, using
lime_glazed_terracottacorners andemerald_blocksides with a single green glow outline (0x55FF55) instead of separate aqua and green glows. - Surface visualization fix on Paper: Fixed restore nature boundary visualization scanning upwards
from the world's minimum bedrock level (
minY/ -64), which previously caused boundary markers to get trapped underground in caves beneath the terrain surface. Boundary scanning now correctly anchors to the terrain surface. - Legacy client compatibility (ViaBackwards): Added per-player protocol detection across Paper and
Fabric. Clients on versions prior to glazed terracotta (<1.12 / <1.10) automatically receive
lime_woolinstead oflime_glazed_terracotta. Glowing display entities are omitted for clients on <1.19.4 which lack BlockDisplay support.
Respect disabled commands in alias.yml
Previously, setting enabled: false on subcommands or root commands in alias.yml could leave standalone
command aliases or tab completions active.
- Disabled subcommands skip standalone registration: Disabling a subcommand (such as
list) inalias.ymlnow properly skips registering its standalone aliases (such as/claimslist) and excludes it from/claimand/aclaimtab completions. - Disabled root commands skip registration: Setting
enabled: falseon a root command (such as/claimor/aclaim) prevents the unified command handler and its associated subcommands from registering. - This applies consistently on both Bukkit/Paper and Fabric platforms.
Upstream cleanup: deprecated API removal (#2678)
Merged upstream GriefPrevention's cleanup of long-deprecated legacy classes and methods:
- Removed deprecated legacy visualization types and classes (
me.ryanhamshire.GriefPrevention.Visualization,VisualizationElement, andVisualizationType). Visualizations continue to use the moderncom.griefprevention.visualizationsystem. - Removed obsolete event classes and deprecated getter methods (
PreventBlockBreakEvent,ClaimModifiedEvent, and legacy getters onAccrueClaimBlocksEvent,ClaimExtendEvent,ClaimResizeEvent, andPlayerKickBanEvent).
Upgrade notes
- Restart the server after replacing the jar.
- Both platforms continue to ship in one universal
GriefPrevention3D.jar: Spigot/Paper/Purpur/Folia (1.8 through modern) and Fabric (1.21.2 through 1.21.11, and 26.1 through 26.3). Fabric requires Fabric API. - No database migrations or config conversions are required.
Platforms
Paper
1.8.8–26.3