StatsMod Update - Performance, Scalability & Vanilla Sync
This major update addresses critical performance bottlenecks, improves stat tracking accuracy, and introduces seamless integration with existing vanilla statistics.
✨ New Features
- Vanilla Stats Import: Added a seamless "run-once" synchronizer. When players join, the mod now automatically pulls their existing vanilla statistics (playtime, blocks mined, mobs killed, etc.) and integrates them into StatsMod. This is perfect for adding the mod to existing servers!
- Dynamic Configuration: Removed hardcoded logic for genres. You can now define custom genres with their own stat prefixes in
genres.ymlwithout code modifications.
🚀 Performance & Scalability
- Optimized Database Leaderboards: The
/topcommand now uses efficient SQL queries for sorting instead of loading every player's data into memory. This fixes scalability issues on large servers. - Distance Tracking Optimization: Movement stat calculations are now throttled to run every 10 ticks (0.5s) and use optimized math, significantly reducing CPU usage during tick events.
🐛 Bug Fixes & Improvements
- Accurate Item Pickup: Fixed unreliable item pickup tracking. The mod now correctly calculates the exact amount of items picked up by intercepting the inventory insertion logic.
- Damage Tracking: Fixed an issue where small damage sources (like poison or starvation) were rounded down to 0. Damage is now rounded up to ensure all hits are registered.
- Mod Compatibility: Improved furnace tracking to check for slot types rather than hardcoded slot IDs, improving compatibility with modded furnaces.
Let me know if anything is not working 1.21.9 LuckPerms is not out yet cant test it should work just fine when it does come out



