
maxHearts
MaxHearts is a fully customizable health plugin that adds permanent hearts, player progression, lifesteal, death-loss, revive tokens, heart items, trap (TNT, lava, dripstone), combat tagging, economy heart purchases, and offline support & more...
252
3
Список изменений
I know we only have 3 downloads so far but I couldn't help picking over my code.
MaxHearts v1.1.0 — Changes and Improvements
-
UUID-based storage
- Player max hearts are now stored by UUID, not username.
- Prevents issues if a player changes their name.
- Last-known name is still tracked for display purposes.
-
New data.yml file
- Player data is stored in plugins/MaxHearts/data.yml.
- config.yml is now only for defaults and bounds.
- Admins no longer have to manage overrides in config.yml.
-
Legacy migration
- Any overrides: section in config.yml is automatically migrated into data.yml.
- Migrated once on startup; config.yml is cleaned up afterward.
-
Configurable bounds
- Added minHearts and maxHearts in config.yml.
- All set/give/take/transfer operations are clamped to these values.
-
Event handling cleanup
- Switched from MONITOR to NORMAL priority in event listeners.
- Still applies heart updates on the next tick for safety.
-
Command flexibility
- Commands accept both player names and UUIDs.
- Transfers can target pending names (applied once that player joins).
- Sources must be actual players with UUIDs (to prevent ghost transfers).
-
Runtime data management
- data.yml is created and updated automatically by the plugin.
- Admins should not edit data.yml manually.
Overall result:
- Safer, more reliable storage of heart data.
- Cleaner config file for admins.
- Improved protection against edge cases (name changes, invalid values).
- Better code semantics for long-term maintainability.
Файлы
maxhearts-1.1.0.jar(15.31 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.1.0
Загрузчики
PaperPurpurSpigot
Версии игры
1.21–1.21.8
Загрузок
45
Дата публикации
6 мес. назад
