Skip to content

Migrate text formatting from legacy color codes to MiniMessage#162

Merged
tastybento merged 2 commits into
developfrom
minimessage-migration
Apr 16, 2026
Merged

Migrate text formatting from legacy color codes to MiniMessage#162
tastybento merged 2 commits into
developfrom
minimessage-migration

Conversation

@tastybento
Copy link
Copy Markdown
Member

@tastybento tastybento commented Apr 16, 2026

Summary

  • Convert all legacy &-prefixed color codes to MiniMessage tags across 9 locale files, 2 biome templates, and 3 panel YAMLs (~6,500+ tokens).
  • Update two hardcoded Java strings (ItemSelector.java dummy item name, BiomesBundleObject.java dummy bundle). User-input processing sites (ConversationUtils, LibraryPanel) deliberately left alone — they handle end-user text that may still contain & codes, which BentoBox's converter merges with MiniMessage.
  • Add 14 missing locale translations (cs, de, hr, hu, id, it, ko, pt, pt-BR, ro, ru, tr, vi, zh-HK) to match BentoBox core's 23-language coverage. All new files use MiniMessage formatting.
  • Tag style: short named tags (<white>, <bold>, <gray>, <red>, <reset>, etc.).
  • Non-breaking: BentoBox 3.14.0 auto-detects and handles mixed legacy/MiniMessage content in User.convertToLegacy().

Test plan

  • mvn clean verify — 82 tests pass
  • grep -rE '&[0-9a-frk-or]' src/main/resources returns no matches
  • Load on a Paper 1.21.x test server with BentoBox 3.14.0 and confirm GUI titles, biome lore, error messages, and chat output render correctly (no literal <tag> text visible)
  • Spot-check translations in non-English locales for correctness

🤖 Generated with Claude Code

tastybento and others added 2 commits April 15, 2026 18:22
Converts all legacy &-prefixed color codes to MiniMessage tags across
locale files, biome templates, panel YAMLs, and hardcoded Java strings
so formatting is consistent with the modernisation effort (BentoBox
3.14.0 parses MiniMessage natively via User.convertToLegacy).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds translations for: cs (Czech), de (German), hr (Croatian),
hu (Hungarian), id (Indonesian), it (Italian), ko (Korean),
pt (Portuguese), pt-BR (Brazilian Portuguese), ro (Romanian),
ru (Russian), tr (Turkish), vi (Vietnamese), zh-HK (Traditional Chinese).

This brings Biomes locale coverage in line with BentoBox core (23 locales).
All new files use MiniMessage formatting tags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tastybento tastybento merged commit 46a59d6 into develop Apr 16, 2026
@tastybento tastybento deleted the minimessage-migration branch April 16, 2026 02:58
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