
158
4
Список изменений
GPExpansion v1.0.4
Highlights
- Added a new
/buyclaimblocksconfirmation menu and full purchase flow driven from GPExpansion. - Significant
/claimmapperformance pass for large claims and long shaped edits. - Added in-canvas panning controls so the map editor can be navigated without touching the spyglass icon.
Buy Claim Blocks Confirmation Flow
- Added a new hopper-style confirmation GUI for
/buyclaimblocks <amount>.- Center slot shows the total cost and cost-per-block derived from GriefPrevention's economy config.
- Dedicated Confirm (lime) and Cancel (red) buttons, with glass-pane fillers between them.
- Closing the inventory without clicking Confirm cancels the purchase cleanly.
- The command now routes entirely through GPExpansion when present:
- validates GriefPrevention availability and
claimBlocksEnabled, - requires a Vault or VaultUnlocked provider,
- re-checks balance at the moment of confirm to avoid race conditions,
- refunds automatically if the claim-block credit step fails.
- validates GriefPrevention availability and
- Added tab-completion with common purchase sizes (
10,50,100,500,1000).
Claim Map Editor Performance
- Reduced per-click latency on
/claimmapfor large claims by:- reusing cached boundary state between consecutive shaped edits,
- short-circuiting polygon rebuilds on no-op edits,
- avoiding repeated reflective lookups into GriefPrevention internals on the hot path.
- Improved frame-to-frame update cost when dragging or repeatedly clicking tiles, so long shaped paths can be drawn in a single session without hitches.
- Cut down redundant visualization refreshes during multi-tile edits.
In-Canvas Panning Options
- Added in-canvas panning so the map can be moved without touching the spyglass icon.
- Dedicated pan controls shift the viewport while keeping selection and edit state.
- Panning works in both Basic and Shaped edit modes.
- Panning respects the current zoom level and snaps to the active tile grid so edits stay aligned after moves.
- Selection and partial-tile overlays stay consistent across pans so in-progress shaped edits are not lost by navigating the canvas.
Technical Improvements
- Added public helpers on the GP bridge for reading the claim-blocks economy config and crediting bonus claim blocks through the normal save path.
- Reduced allocations in the map editor's tile refresh loop, especially for claims with many cells or long perimeters.
Recommended Pairing
- Pair this release with GriefPrevention
v17.3.5for the shaped-claim performance work that enables large shaped path creation driven from the map editor.
Файлы
GPExpansion.jar(1.27 MiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.4
Загрузчики
BukkitFoliaPaperPurpurSpigot
Версии игры
1.20–1.21.11
Загрузок
10
Дата публикации
3 нед. назад