Skip to content

feat: add {#{expression}} progress bar placeholder syntax - #567

Merged
Exanthiax merged 3 commits into
masterfrom
feat/progress-bar-placeholder
Aug 7, 2026
Merged

feat: add {#{expression}} progress bar placeholder syntax#567
Exanthiax merged 3 commits into
masterfrom
feat/progress-bar-placeholder

Conversation

@Exanthiax

Copy link
Copy Markdown
Member

No description provided.

Requested a reusable progress bar placeholder for leveling systems
(pets/jobs/items/collections/etc). StringUtils.createProgressBar
already existed but was never wired to anything usable from config.
Add a {#{expression}} bracket syntax, alongside the existing {{ }}/
{^{ }} math expression syntax, that evaluates the expression as a
0-100 percentage and renders it via createProgressBar with sensible
defaults (10 bars, green/gray). Works with any percentage-shaped
placeholder already exposed by any eco plugin, not just a specific
leveling system.
@Exanthiax
Exanthiax requested a review from a team August 5, 2026 21:26
Adds a progress-bar section to config.yml (character, bars,
complete/in-progress/incomplete formats) and threads it through
PlaceholderParser instead of hardcoding the bar's look.
@Exanthiax
Exanthiax requested a review from CallumJohnson August 6, 2026 15:57
@CallumJohnson
CallumJohnson marked this pull request as ready for review August 7, 2026 21:33
@Exanthiax
Exanthiax merged commit 4fbb9dc into master Aug 7, 2026
1 check passed
@Exanthiax
Exanthiax deleted the feat/progress-bar-placeholder branch August 7, 2026 22:07
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.

2 participants