
158
4
Список изменений
GPExpansion v1.0.6
Highlights
- Real VaultUnlocked v2 support:
/buyclaimblocksand the rest of the economy flow now correctly use the modern UUID + BigDecimal API. - The
/buyclaimblocksconfirmation chest is now fully translatable via a newguis/buyclaimblocks-confirm.yml. - New layout for the confirmation menu: Cancel · Info · Confirm (red, gold ingot, green).
- Clearer error message when an economy provider plugin is missing vs. when Vault itself is missing.
- Stopped the duplicate-permission warnings on startup when running alongside GriefPrevention.
PermissionManagernow tolerates malformedplayer-commandsentries inconfig.yml.- Source repackaged from
dev.towki.gpexpansiontocodes.castled.gpexpansion.
Translatable Confirmation GUI
A new file is shipped to plugins/GPExpansion/guis/buyclaimblocks-confirm.yml on first run. It controls every visible string and item inside the confirmation chest:
title: "&6Buy {amount} blocks for {totalCost}"
filler:
material: GRAY_STAINED_GLASS_PANE
slots:
cancel: 0
info: 2
confirm: 4
items:
info:
material: GOLD_INGOT
name: "&6&l{amount} Claim Blocks"
lore:
- ""
- "&7Cost per block: &e{cost}"
- "&7Total cost: &a{totalCost}"
confirm:
material: LIME_WOOL
name: "&a&lCONFIRM"
lore:
- ""
- "&7Click to purchase"
- "&e{amount} &7claim blocks"
cancel:
material: RED_WOOL
name: "&c&lCANCEL"
lore:
- ""
- "&7Click to cancel"
Placeholders ({amount}, {cost}, {totalCost}) are pre-formatted by your active economy. The defaults match the previous English text, so existing servers see no visible change until they translate the file.
Chat-side messages (cost mismatch, purchase confirmation, etc.) continue to be sourced from GriefPrevention's messages.yml via the v1.0.5 bridge.
Repackage: codes.castled.gpexpansion
The Java sources moved from dev.towki.gpexpansion to codes.castled.gpexpansion. This is purely a namespace/branding change — there is no behavioral difference and no migration step is required.
Compatibility
- Paper API
1.26.1(Java 21). - Folia-supported.
- GriefPrevention3D
v17.3.10+(uses the sameMessagesenum bridge introduced in v1.0.5). - Vault, VaultUnlocked v1, VaultUnlocked v2.x, or any provider that registers
net.milkbowl.vault.economy.Economyornet.milkbowl.vault2.economy.Economy.
Files Added / Changed
- Added
src/main/resources/guis/buyclaimblocks-confirm.yml. - Refactored
BuyClaimBlocksConfirmationGUIto render fully from the new YAML with English fallbacks. - Refactored
GPExpansionPlugineconomy methods (getBalance,hasMoney,withdrawMoney,depositMoney,formatMoney) for v2 BigDecimal/UUID + newinterpretEconomyResponsehelper + newisVaultPluginInstalledhelper. - Refactored
BuyClaimBlocksCommandto differentiate "no Vault" vs "no provider". - Refactored
PermissionManager.updatePlayerCommandPermissions()for malformed-entry tolerance. - Cleaned
paper-plugin.yml(removed duplicategriefprevention.claims/griefprevention.transferclaimdeclarations). - Renamed all source packages from
dev.towki.gpexpansion→codes.castled.gpexpansion.
Файлы
GPExpansion.jar(1.33 MiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.6
Загрузчики
BukkitFoliaPaperPurpurSpigot
Версии игры
1.20–26.1.2
Загрузок
7
Дата публикации
1 нед. назад