Compatible with 1.12 → 1.21.8 (modern API with safe fallbacks for legacy)
New
- /treasure copy & /treasure paste
Copy an existing treasure (items + cooldown + one-time flag + random pool + cost) and paste it onto an empty target container. Works with chests, barrels (1.14+), and shulkers.
Feedback included: chat + title + sound + particles.
Permissions: treasure.copy, treasure.paste.- /treasure look <north|south|east|west>
Set the facing of the treasure container to a precise direction. Uses 1.13+ BlockData when available and auto-falls back to 1.12 MaterialData.
Feedback included: chat + title + sound + particles.
Permission: treasure.look.- /treasure reload
Reloads config.yml on the fly and refreshes holograms.
Feedback included: chat + title + sound + particles.
Permission: treasure.reload.
Fixes & Stability
- Time formatting now consistent
Holograms and titles both use the same formatting pipeline, powered by placeholders.time-format. No more mismatched time displays.- {money} placeholder always correct
Cost is now displayed consistently in both chat and titles, and the hologram hides the money line when cost ≤ 0.- Block replacement reliability
custom-chest.simple-swap reliably swaps the block (e.g. SHULKERBOX:2) when ItemsAdder isn’t used or fails.- Custom menu titles
menu.chest-name shows exactly as configured, with {player} replaced by the opener’s name.
Improvements
- Failsafe ItemsAdder integration
If ItemsAdder is missing/disabled or placement fails, the plugin automatically falls back to your configured vanilla block.- Smarter material parsing
Better handling of custom-chest materials (CHEST / BARREL / SHULKERBOX:<0..15>) to avoid invalid block errors on legacy servers.- Unified placeholders
Cleaner, consistent placeholder replacement across messages, titles, and holograms.- Economy UX
Added a clear no-economy message if Vault/economy isn’t detected. Works with both charge on open and charge on loot modes.New keys you’ll see in config.yml:
Config Additions (all commented & documented)
- Messages:
copy-ok, copy-fail-no-treasure, paste-ok, paste-fail-*,
look-usage, look-set, look-invalid-direction, look-fail-unsupported,
reload-ok, reload-fail, no-economy.- Titles:
copy, paste, look-set, reload (+ a small usage title).- Sounds:
copy, copy-fail, paste, paste-fail, look-set, look-fail, reload, usage.- Particles (world events):
copy, paste, look-set, reload.
(Kept both set-random and legacy setrandom keys for backward compatibility.)- Placeholders:
placeholders.time-format controls how {time} is rendered everywhere.All new keys ship with sensible defaults and comments. Your original comments stay intact thanks to the comment-preserving migrator.
Permissions & Commands (recap)
- treasure.copy, treasure.paste, treasure.look, treasure.reload (all default: op)
- Main command now covers:
/treasure <set|settime|setrandom|setmoney|copy|paste|look|reload|remove>
Storage & Schema
- SQLite/MySQL schemas ensured at startup (adds any missing columns automatically, including money_cost and original_material).
- Safe persistence across new features (random pool + cost + original material).
Recommendations
- Review your config.yml after updating to take advantage of the new features (copy/paste/look/reload feedback, particles, and sounds).
- ItemsAdder users: confirm custom-chest.itemsadder.id matches your namespace:id.
- Economy users: pick your charging mode in economy.charge-on-loot and set the right currency-symbol.
Database fixes:
databaseManager.initialize()
Version support: 1.21.8
Fixes & Stability
- Placeholder magic restored – {money} now correctly shows the real cost in both chat and title displays.
- Block replacement back in action – custom-chest.simple-swap now properly swaps to your configured material (e.g., SHULKERBOX:2) every time.
- Custom menu titles work again – menu.chest-name from config.yml now appears exactly as set, with {player} replaced by the opener’s name.
Improvements
- Failsafe ItemsAdder integration – automatically falls back to vanilla block types if IA is disabled or unavailable.
- Smarter config material handling – better parsing for custom-chest materials, preventing invalid block errors.
- Consistent placeholders everywhere – improved placeholder parsing so your messages, titles, and holograms always stay up-to-date.
Recommendations
- Review your config.yml after updating to ensure all new features are set up.
- For ItemsAdder users: double-check custom-chest.itemsadder.id matches your custom block namespace and ID.
If the vault is not active, the plugin will still work without the following command: /treasure setmoney.
༄ Added ItemsAdder support for custom chest models.
༄ Minimal bugg fixes.
༄ Custom Treasure (Chest, Barrel, ShulkerBox).
Thanks
