libreforge
libreforge copied to clipboard
bonus_health can get truly permanent on server crash (OOM, JVM Crash, etc)
Describe the bug The bonus_health effect has been used in a few EcoEnchants I've made. It works great, adds more hearts when wearing the armor and removes them when removing the armor.
However, I've seen some players with high amount of hearts and I've found out that it happened after a JVM Crash. When they log in again, it seems like the bonus_health effect is re-aplied.
To Reproduce There's not exactly a way to reproduce it, but it happens after a JVM Crash (I think OOM might cause it too) while wearing the armor.
Expected behavior Bonus hearts shouldn't be kept.
Server Information (please complete the following information):
- Version of Eco: 6.48.2
- Version of EcoEnchants: 9.15.0
Additional context I've posted this on Libreforge since I think it's a problem that can happen in every Eco's plugin. I'm quite sure this isn't a EcoEnchants-only problem.