Repository navigation
Add objective_max and rewards placeholders - #9
Open
kazotaruumc72 wants to merge 2 commits into
Open
kazotaruumc72 wants to merge 2 commits into
kazotaruumc72 wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
%zquests_rewards_<quest>% and %zquests_rewards_count_<quest>% describe the rewards of a quest. Lines come from the new rewards-lore section, or are generated from the give / eco give commands of the rewards. Co-Authored-By: Claude Opus 5.5 <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
%zquests_objective_max_<quest>%: returns the quest goal (maximum objective),0if the quest ID is invalid.%zquests_rewards_<quest>%: displays the rewards of the quest, joined withrewards-placeholder.separator.%zquests_rewards_count_<quest>%: number of reward lines.rewards-lore(list of lines). When absent, the lines are generated from thegive/eco givecommands of therewardssection; other actions (messages, other commands) are not displayed:give %player% diamond 5→5x Diamond(namespace and item components are stripped)eco give %player% 500(EssentialsX) →500 $eco give coins 500 %player%→500 coinsconfig.ymlunderrewards-placeholder(separator,empty,item,money,default-currency).Quest#getRewardsLore()added to the API as adefaultmethod, so external implementations keep compiling.objective_max_,rewards_count_) are registered before their shorter prefix sinceLocalPlaceholderkeeps the first match.Test plan
./gradlew compileJavapasses🤖 Generated with Claude Code