File Details
GriefPrevention3D v18.2.5
- R
- Jul 5, 2026
- 930.18 KB
- 3
- 26.2+45
File Name
GriefPrevention3D.jar
Supported Versions
- 26.2
- 26.1.2
- 26.1.1
- 26.1
- 1.21.5-Snapshot
- 1.21.11
- 1.21.10
- 1.21.9
- 1.21.8
- 1.21.7
- 1.21.6
- 1.21.5
- 1.21.4
- 1.21.3
- 1.21.2
- 1.21.1
- 1.21
- 1.20.3-Snapshot
- 1.20.5-Snapshot
- 1.20.6
- 1.20.5
- 1.20.4
- 1.20.3
- 1.20.2
- 1.20.1
- 1.20
- 1.19.4
- 1.19.3
- 1.19.2
- 1.19.1
- 1.19
- 1.18.2
- 1.18.1
- 1.18
- 1.17
- 1.16
- 1.15
- 1.14
- 1.13
- 1.12
- 1.11
- 1.10
- 1.9
- 1.8.3
- 1.8.1
- 1.8
v18.2.5: improved PvP toggle UX, Vault economy formatting, subdivision PvP inheritance
GriefPrevention3D v18.2.5
Wiki: https://github.com/castledking/GriefPrevention3D/wiki
Features
Improved /claim pvp command UX
The PvP toggle command has been significantly refactored for better usability and code clarity.
Clearer confirmation flow
The confirmation messages have been rewritten to be more explicit about what action will be taken:
ConfirmPvpToggleEnabledNoFee- "Do you want to enable PvP in this {0}?"ConfirmPvpToggleDisabledNoFee- "Do you want to disable PvP in this {0}?"ConfirmPvpToggleEnabledWithFee- "Do you want to pay {0} to enable PvP in this {1}?"ConfirmPvpToggleDisabledWithFee- "Do you want to pay {0} to disable PvP in this {1}?"
Previously all fee/no-fee variants used a single templated message with "enable"/"disable" as a parameter. Now they are separate messages with clear instructions.
Already-toggled handling
Running /claim pvp true on a claim where PvP is already enabled now shows a specific message instead of silently succeeding.
/claimpvpconfirm improvements
The /claimpvpconfirm command now validates that the player still has edit permission for the claim before executing the toggle, and shows proper error messages (NoPendingPvpToggle, PendingPvpToggleExpired) instead of hardcoded English strings.
Vault economy formatting
Added VaultEconomyFormatting utility class that formats currency amounts using the active Vault economy provider. When Vault is available, it uses economy.format() for locale-aware currency display; falls back to String.format("%.2f", amount) otherwise.
Fee amounts in PvP toggle confirmation and success messages now use this formatted display instead of raw String.format("%.2f", fee).
Technical changes
- Refactored
handlePvpCommand()into smaller helper methods:parsePvpToggleArg(),getPvpToggleContext(),getPvpToggleClaimTypeLabel(),sendPvpToggleConfirmation(),chargePvpToggleFee(),sendPvpToggleSuccess(),clearPendingPvpToggle() - Introduced
PvpToggleContextinner class to bundle fee and claim-type info - Added
VaultEconomyFormattingutility withformat(Server, double)andformat(Economy, double)overloads - Updated
DataStore.createClaim()to inherit PvP state whenconfig_pvp_subdivisionPvpStateisINHERIT - Updated
handleClaimPvpConfirmCommand()to validate edit permission and use message enums - Removed
PvPToggleSuccess/PvPToggleSuccessWithFeemessage keys (replaced by separate enable/disable variants) - Added
ClaimLabel,SubdivisionLabelin Messages enum and resource files - Added
griefprevention.claimpvppermission node as a child ofgriefprevention.claims - Fixed missing
&rreset code instartups.txttemplate