
GriefPrevention3D
A fork of GriefPrevention that adds 3D subdivisions
Список изменений
GriefPrevention3D v17.5.0
Wiki: https://github.com/castledking/GriefPrevention3D/wiki
Highlights
- Fixed negative claim block balance on
/expandclaim- Expanding a claim no longer silently bypasses the block-sufficiency check when the player's name lookup returns an unexpected value, which could leave players with a negative block balance.
Bug Fix
The block-sufficiency guard in resizeClaimWithChecks compared player.getName() against claim.getOwnerName(). getOwnerName() resolves the owner's name through an offline player lookup, which can return "Unknown" or a cached display name that does not exactly match the online player's getName(). When the comparison failed, the entire block check was skipped and the resize was allowed to proceed regardless of available blocks — leaving the player with a negative balance after the fact.
The check now compares player.getUniqueId() against claim.ownerID directly, which is reliable regardless of name resolution state.
Migration
No data migration or configuration changes required. Players who ended up with a negative balance will need an admin to restore their blocks via /givepet or /setblocks.
