If players opens right time the chest is detecting 2 custom treasures and stop bugging.
• Changelog
TreasureChestPlus and its official addons have been updated for broader legacy-to-modern Minecraft server
compatibility.
TreasureChestPlus
- Improved compatibility from legacy Bukkit/Spigot 1.7+ up to modern 1.21.x builds.
- Removed fixed api-version so older Bukkit/Spigot versions can load the plugin.
- Compiled with Java 8 bytecode for wider server support.
- Added safer cross-version handling for online player lookup.
- Added compatibility fallbacks for titles, particles, holograms, and inventory APIs.
- Made optional integrations safer through reflective loading.
- Added SQLite driver packaging for reliable local database startup.
- Added soft-dependencies for optional hooks such as Vault and ItemsAdder.
TreasureParticles
- Updated to 0.0.2.
- Updated dependency target to TreasureChestPlus 0.4.4.
- Reworked particle handling to avoid direct dependency on modern org.bukkit.Particle.
- Added legacy fallback particle support for older servers.
- Improved treasure chest detection compatibility on older Bukkit APIs.
- Removed direct Vault dependency usage.
- Compiled with Java 8 bytecode.
TreasureNavigator
- Updated to 0.0.2.
- Updated dependency target to TreasureChestPlus 0.4.4.
- Improved actionbar compatibility with reflective loading and chat fallback.
- Added safer player lookup for old and modern Bukkit versions.
- Removed unnecessary direct Vault dependency.
- Compiled with Java 8 bytecode.
Build
- TreasureChestPlus: 0.4.4
- TreasureParticles: 0.0.2
- TreasureNavigator: 0.0.2
- All three projects build successfully with Java 8 bytecode.
Temporarily disabled due to license key server updates and database updates.
November 2025
TreasureChestPlus v0.4.1 – Navigator Addon & Core Stabilization Update
A brand-new Compass Navigator Addon has arrived!
New: Navigator Addon
A smart tracking system that always points to the best or nearest treasure chest — fully compatible from 1.12 to 1.21.10.
➤ Right-click activation
Key Features
– Automatic timed duration (configurable, e.g., 15 minutes)
– Actionbar countdown while active
– Prevents re-activation until the timer ends
➤ Chest selection modes:
– NEAREST → closest treasure
– HIGHEST VALUE → based on money + item count weighting
➤ Intelligent skipping
– Does not track chests that are on cooldown
– Does not track already-opened one-time chests
– If no valid chest is found → compass “random spin” animation + clean message
➤ Full core integration
– Uses the core plugin’s messages.prefix
– Automatically injects /treasure give navigator into the main help menu
– Reads all treasure data from the main TreasureChestPlus system
Stability & API Improvements
✔ Removed particles and sounds entirely
Ensures perfect compatibility for 1.12 servers (no missing enums).
✔ Fully safe actionbar system
Works on:
– 1.12 using Bungee Chat API
– 1.13+ using Spigot’s ActionBar API
✔ Optimized chest targeting logic
– Extremely lightweight compass updates
– No lag spikes on weaker servers
✔ Guaranteed compatibility:
– Java 8 → Java 21+
– Spigot / Paper 1.12 – 1.21.10
🛠 Command & Logic Fixes
✔ /treasure give navigator now stable in all versions
✔ Addon command automatically appears in /treasure help
✔ Right-click detection fixed
– works for right-click air & right-click block
– improved item recognition with hidden metadata marker
✔ Prefix always pulled from core → messages.prefix
Quality of Life Improvements
✔ No more “navigator already active” spam
✔ Actionbar updates once per second (very lightweight)
✔ Players without a navigator no longer receive distance/no-chest messages
Summary
Added
Navigator Addon – full compass tracking system
✔ Right-click activation
✔ Actionbar timer
✔ Skips invalid chests (cooldown, one-time, opened)
✔ Auto-registration in help menu
Fixed
✔ 1.12 sound/particle incompatibility → removed
✔ Prefix unified with core
✔ Right-click activation reliability
✔ Actionbar fallback for legacy versions
✔ Distance/no-chest spam removed
Improved
Faster, safer compass updates
Smarter chest selection logic
Cleaner addon lifecycle (onLoad/onEnable separation)
Full compatibility across 1.12–1.21.10
Core Improvements
- SQLite compatibility fully fixed → removed invalid ON DUPLICATE KEY syntax.
The plugin now automatically uses REPLACE INTO for SQLite and ON DUPLICATE KEY UPDATE for MySQL.
No more “near ON: syntax error” messages in console.
- ChestManager rewritten for cleaner database persistence:
- Supports both MySQL and SQLite natively.
- No extra storage wrappers needed (SQLiteStorage removed).
- All create/update/remove operations are now stable and error-free.
Command Fixes
- Fixed /treasure set not saving chests due to failed DB upsert.
- Chests are now correctly registered and persist after restart.
- Commands like /treasure settime, /treasure setrandom, /treasure remove now work properly.
- Added validation for empty chests:
- You can no longer set an empty chest as a treasure.
- Prevents accidental empty treasure setup.
- Sends message + sound feedback when trying to set an empty chest.
- Improved targeting detection:
- Cross-version compatible (1.12 → 1.21).
- Fully supports both legacy getTargetBlock(Set,dist) and modern getTargetBlockExact() methods.
Database & Performance
- Optimized connection reuse – no redundant reconnects.
- Proper prepared statements with auto-close to avoid leaks.
- Cached lookups for isChest() and getAllChestLocations().
Quality of Life
- Minor particle / hologram refresh consistency fixes after creating or removing treasures.
- Safer error handling – plugin no longer disables itself on single SQL error.
- Code cleanup & full compatibility with both Java 8 and Java 21 servers.
Fixed:
Summary
✔ SQLite “ON” syntax error
✔ /treasure set not saving
✔ /treasure settime & /treasure setrandom doing nothing
✔ Empty chest creation bug
✔ Version targeting for 1.12+
Improved:
Stability, database handling, and cross-version support (1.12 → 1.21+)
Update v0.3.9 — Preview Mode & Custom Particle Addon
• Preview Mode (Spectator View)
New Features
Players can now look inside treasure chests before opening them!
Perfect for event showcases, VIP rewards, or decorative treasure rooms.
Includes smart placeholder updates, hologram sync, and permission control.
• TreasureParticles Addon (Custom Particle System)
A brand-new official addon that brings your chests to life with stunning 3D particle effects.
All particle logic is YAML-driven — no code editing required.
Supports per-trigger mappings like:
radius-open, radius-locked, open, preview, locked, no-money
Includes 16+ particle types (RING_PULSE, HELIX, DRAGON_SPIRAL, FIREWALL_ARC, etc.)
Auto-cleanup, per-player cooldowns, and full integration with holograms, cooldowns, and economy.
Improvements
- Optimized random-loot system for smoother item generation.
- Holograms instantly refresh on /treasure set* actions.
- Reduced hologram desyncs after reload or world change.
- MySQL/SQLite schema checks are now safer and faster.
- Action and sound feedback rebalanced for a cleaner UX.
Fixes
- Fixed rare particle leak when removing treasures during server shutdown.
- Fixed missing title refresh when setting new cooldowns.
- Fixed ItemsAdder block fallback on legacy servers.
- Improved look direction handling on 1.12 (legacy BlockFace mapping).
All addons (including TreasureParticles) now load dynamically at startup from /addons.
Addon System Expansion
No setup needed — they auto-detect and integrate with the core plugin.
What’s Next
- Addon API documentation (for devs).
- More particle presets and hologram animation templates.
- Visual chest radius editor (planned for v0.4.0).
Update now to give your treasures cinematic presence and true interactivity!
