Add economy integration for blueprint bundle costs#2806
Merged
tastybento merged 4 commits intodevelopfrom Mar 1, 2026
Merged
Conversation
Wire up the existing BlueprintBundle cost field with full Vault economy support: admin GUI editor, player-facing cost display, and automatic charge/check on island creation and reset. Cost only applies when multiple bundles are available. Reset charging is gated behind a new config option (charge-for-blueprint-on-reset, default false). All cost logic is silently skipped when Vault/economy is not installed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Translate cost, no-cost, and cost-amount keys into all 22 non-English locale files. Also update en-US to use [prefix_Island] placeholder instead of hardcoded "Bundle". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Translate the remaining two locale entries to all 22 non-English files: - commands.island.create.cannot-afford (player error message) - panels.island_creation.buttons.bundle.cost (panel cost display) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract the common cost-checking logic from IslandCreateCommand and IslandResetCommand into a package-private BlueprintCostHelper class to eliminate code duplication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
BlueprintBundle.costfield with full Vault economy supportcharge-for-blueprint-on-reset(default: false)TextVariables.COSTplaceholder and locale entries for admin/player messagingTest plan
./gradlew buildpassesIslandCreateCommand(cannot afford, can afford, single bundle ignored, no economy ignored, no vault ignored)IslandResetCommand(cannot afford, can afford, disabled by config, no vault ignored)🤖 Generated with Claude Code