Skip to content

Add objective_max and rewards placeholders - #9

Open
kazotaruumc72 wants to merge 2 commits into
Maxlego08:developfrom
MineArena:feature/objective-max-placeholder
Open

kazotaruumc72 wants to merge 2 commits into
Maxlego08:developfrom
MineArena:feature/objective-max-placeholder

Conversation

@kazotaruumc72

@kazotaruumc72 kazotaruumc72 commented Nov 7, 2026 •

Copy link
Copy Markdown

Summary

  • %zquests_objective_max_<quest>%: returns the quest goal (maximum objective), 0 if the quest ID is invalid.
  • %zquests_rewards_<quest>%: displays the rewards of the quest, joined with rewards-placeholder.separator.
  • %zquests_rewards_count_<quest>%: number of reward lines.
  • New optional quest key rewards-lore (list of lines). When absent, the lines are generated from the give / eco give commands of the rewards section; 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 coins
  • Formats configurable in config.yml under rewards-placeholder (separator, empty, item, money, default-currency).
  • Quest#getRewardsLore() added to the API as a default method, so external implementations keep compiling.
  • Prefix placeholders (objective_max_, rewards_count_) are registered before their shorter prefix since LocalPlaceholder keeps the first match.
rewards-lore:
  - "&e500 coins"
  - "&b1x Rune de feu"

Test plan

  • ./gradlew compileJava passes
  • Command parsing checked on give / minecraft:give / item components / eco (both syntaxes) / ignored commands
  • In-game check of the placeholders

🤖 Generated with Claude Code

kazotaruumc72 and others added 2 commits November 7, 2026 13:53
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>
@kazotaruumc72 kazotaruumc72 changed the title Add %zquests_objective_max_<quest>% placeholder Add objective_max and rewards placeholders Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant