
CombatStats
Track kills, deaths, KD, killstreaks, playtime, balance leaderboards and milestone rewards with PlaceholderAPI support.
Список изменений
🚀 CombatStats v2.1 Update
This update focuses on important bug fixes, improved data consistency, and several quality-of-life enhancements for administrators.
🐛 Bug Fixes & Data Consistency
📊 Accurate Leaderboards & Holograms
Fixed an issue where leaderboard data (especially balance rankings) and PlaceholderAPI placeholders could display outdated information. Data is now synchronized consistently between the plugin cache and database at the configured interval, ensuring accurate and up-to-date displays.
💾 Fixed /cs set & /cs reset Persistence
Resolved a bug where admin changes made through /cs set and /cs reset were not always saved correctly when the target player was online. Changes now update both the in-memory cache and the database instantly.
🎯 Improved K/D Ratio Precision
Kill/Death ratios are now consistently rounded to two decimal places for cleaner and more accurate statistics.
🔄 Better Offline Player Synchronization
Enhanced the background synchronization system to periodically refresh and save data for offline players as well. This improves reliability for externally modified values such as economy balances.
✨ Improvements & New Features
⚙️ Configurable Data Refresh Interval
Added a new configuration option:
performance.data_refresh_interval
This setting allows you to define how often (in seconds) player data such as playtime and balance is synchronized with the database, giving you more control over performance and data freshness.
⏱️ Dynamic Playtime Formatting
The %combatstats_player_playtime% placeholder now automatically formats playtime into a user-friendly format:
Xd Yh Zm Ws
Example: 1d 5h 30m 15s
📋 In-Game Placeholder Browser
Added the new command:
/cs placeholder
This command displays a complete list of all available PlaceholderAPI placeholders, including descriptions and convenient click-to-copy functionality.
👤 Self-Referencing {player} Variable
Commands now support the {player} placeholder to automatically reference yourself.
Examples:
/stats {player}/cs set {player} kills 100
This makes commands faster and more convenient to use.
⌛ Advanced Playtime Input
The command:
/cs set <player> playtime <duration>
now supports flexible duration formats such as:
1d5h 30m1d 5h 3m 2s
The parser intelligently recognizes mixed duration formats and provides improved tab-completion suggestions.
