GPExpansion v1.2.8
This release fixes claim boundaries on BlueMap and Dynmap missing one block along the +X and
+Z (right and bottom) edges, and adds an option to give each player's claims a unique default
colour derived from their name.
The Maven project version is now 1.2.8. New configuration keys are added to existing config.yml
files automatically.
Map Boundary Outline Fix
Previously, rectangular claims without a GriefPrevention3D polygon inflated their greater corners
by +1.0, while polygon claims returned raw inclusive block-lattice coordinates. Because every
GriefPrevention3D claim (both rectangular and shaped) exposes a boundary polygon, BlueMap and
Dynmap polygons stopped one block short on the +X (right) and +Z (bottom) sides.
GPBridge.getClaimOutlinenow simplifies consecutive duplicate and collinear nodes on orthogonal polygons, determines polygon orientation from its signed area, and shifts every outward+Xand+Zedge by+1.0block.- Rendered outlines now match the exact
[x, x + 1] × [z, z + 1]world footprint of every protected block regardless of polygon winding or concave corners, while leaving classic rectangular fallback claims (including1×1claims) working as before.
Per-Player Default Map Colours
By default, all player claims without a custom /claim color shared the single yellow
integrations.colors.main-claim (#FFD700) colour. You can now opt into unique per-player
colours so all claims belonging to the same owner share a consistent colour on BlueMap and
Dynmap:
integrations:
colors:
per-player: false
main-claim: "#FFD700"
admin-claim: "#FF8C00"
- Set
integrations.colors.per-player: true(or setintegrations.colors.main-claimto"player-hash","owner-hash", or"per-player") and run/gpx reload. - Player colours are derived deterministically from a case-insensitive hash (FNV-1a + SplitMix64)
of the owner's name mapped into a vivid HSV band (
S ∈ [0.65, 0.90],V ∈ [0.75, 0.95]), so similar usernames spread cleanly across the hue wheel and stay readable over map terrain. - Precedence: Explicit per-claim
/claim coloroverrides still take priority (includingblack/#000000, which is now treated as an explicit override rather than unset), admin claims continue usingintegrations.colors.admin-claim, and claims with an unknown or blank owner fall back tointegrations.colors.main-claim.
Updating and Verification
Replace GPExpansion.jar and restart the server (or reload if updating from 1.2.7). Existing
config.yml files receive integrations.colors.per-player: false automatically on load without
changing existing marker appearance until enabled.
All 39 tests pass against both Spigot and Paper, including new unit coverage for orthogonal
polygon inflation across rectangles, concave L-shapes with redundant nodes, U-notches, both
windings, 1×1 fallbacks, and per-player colour hashing (ClaimOutlineTest and MapColorsTest).
Verified with mvn -o test, mvn -o -Ppaper test, and mvn -o package -DskipTests on Java 25.