no you dont need to store anything, the players XP is already stored in the game, and the HP Is based on XP level, so there is no need for a database if nobody does in a few hours I'll reconsider. but I think someone can take that code and release exactly what you want pretty easily EDIT by Moderator: merged posts, please use the edit button instead of double posting.
The link that you posted. Why at the bottom int maxHP = 20 ? I don't know anything about coding but why is it like that ?
Yes but he wants the players health to stay the same even after the XP is removed. I guess I'll go ahead and compile yours for him, but I will rewrite the next version to support data storing.
that's the default value it will use if there isn't one in the config file for your current XP Level. He said XP Will be kept permanently as well, so you dont need to keep it independently, the XP will always be there. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
mikhaelcool7 Kk, waiting for approval but here it is: http://dev.bukkit.org/bukkit-plugins/level-health/ metalhedd Would you like me to maintain it/add in suggestions? I'll add you as the Author.
Thank you Thank you EDIT by Moderator: merged posts, please use the edit button instead of double posting.
No need to credit me, it only took 10 minutes and a cup of coffee, You can call it "NathanG's Awesome' Health Thingy" if you want
It doesn't work properly with armor on -_- When you equip armor your health drops back to 20 and you have 10 hearts. When you level up you get your health and hearts back but if you get hit a lot while having armor on and you get hit until your health drops below 20 your hearts drop back to 10 and you have 20 health again. When you take of your armor it drops your health again. When you die your health drops to 20 and you have 10 hearts but I still have my level and xp. When you level up it gets fixed. It doesn't work properly with armor on -_- When you equip armor your health drops back to 20 and you have 10 hearts. When you level up you get your health and hearts back but if you get hit a lot while having armor on and you get hit until your health drops below 20 your hearts drop back to 10 and you have 20 health again. When you take of your armor it drops your health again. When you die your health drops to 20 and you have 10 hearts but I still have my level and xp. When you level up it gets fixed. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
That definitely doesn't happen for me. it must be a conflict with your other plugins. I've equipped and unequipped armor over and over, it has no effect on health.
Can LoreAttributes or MobHealth plugins affect it ? It was LoreAttrbutes. I tried to remove the base health it kept putting me in - No. I tried to put the base health 80 and when the glitch happens I get 80 health and 4 rows of hearts. Is there another plugin that will allow me to put its enchantments into another plugins custom weapon. By using a config. A plugin that cant do anything in-game. EDIT by Moderator: merged posts, please use the edit button instead of double posting.