Add complete DB-driven upgrade system#67
Merged
tastybento merged 1 commit intodevelopfrom Feb 22, 2026
Merged
Conversation
- Add `canPay()`/`pay()` abstracts to Price and implement in IslandLevelPrice, MoneyPrice, ItemPrice, PermissionPrice - Add `apply()` abstract to Reward and implement in RangeReward, LimitsReward, CommandReward - Create MoneyPrice/DB (Vault cost), ItemPrice/DB (inventory items), PermissionPrice/DB (permission gate) - Create LimitsReward/DB (block/entity/entity-group limit increases), CommandReward/DB (console or player commands) - Add DatabaseUpgrade bridge class wiring UpgradeData/UpgradeTier to the player shop - Fix Panel.java display logic so DB upgrades show own description without legacy vault/level lines - Register new price/reward types and auto-load active DB upgrades per hooked game mode in onEnable - Add Settings.evaluate() public helper to expose formula evaluation outside the config package - Add refreshDatabaseUpgrades() for use after admin changes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
Author
|
Latest commit resolves issues #68, #69, #70, and #71: #71 — DB upgrades not appearing in player panel:
#69 — Admin panel opens directly in list view:
#68 — Empty admin list on fresh install:
#70 — 8 UX improvements:
|
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
canPay(),pay()toPriceabstract andapply()toRewardabstract, wiring admin-configured upgrades to actual game logicMoneyPrice(Vault cost via formula),ItemPrice(inventory items),PermissionPrice(permission node gate) — each with DB counterpart and admin panelLimitsReward(block/entity/entity-group limit increases via Limits addon),CommandReward(console or player command execution) — each with DB counterpart and admin panelDatabaseUpgradebridge class: connectsUpgradeData/UpgradeTierdatabase objects to the player shop (UpgradeAPI), implementingupdateUpgradeValue,canUpgrade,doUpgrade, andisShowedwithout touching legacy codeDatabaseUpgradeitems show their own description without the legacy vault/level summary lines; legacy upgrades unchangedonEnable;refreshDatabaseUpgrades()allows hot-reload after admin changesSettings.evaluate(): public helper exposing formula evaluation outside theconfigpackagemoney,item,permissionprices andlimits,commandrewardsTest plan
mvn test— all 70 existing tests pass/bsb admin upgrade→ creates upgrade with MoneyPrice + LimitsReward/bsb upgrade→ new upgrade appears with correct cost description/upgrades reload→ DB upgrades refresh without restart🤖 Generated with Claude Code