MaxHealth
About
MaxHealth is a plugin that allows you to change the maximum health of players on your server! You can not only raise and lower the global health, but also set the base health for specific players! This plugin is very useful for RPG type servers where you need to have high health for players so that you can have a wide range of abilities or just want battles to take longer.
Commands
- /health (player) or /vh (player) - Views health (in hearts)
- /sethealth [player] or /sh [player] [value] - Sets the health of a player (in hearts)
- /setmax [player] or /sm [player] [value] - Sets the maximum health of a player (in hearts)
- /mend [player] - Integrated command that will fully heal a player or yourself (added because using another plugin's /heal command will NOT work!)
Permissions
MaxHealth has a permission for each command except for /health, which defaults to all players
- MaxHealth.mend - Permission to use /mend
- MaxHealth.setmax - Permission to use /setmax
- MaxHealth.set - Permission to use /sethealth
Installation
Just drag the MaxHealth.jar file into your plugins folder and restart your server (reloading not recommended as changes are applied as a player joins). An editable config.yml (for settings) file and database.yml (for storage) file should automatically generate for you.
NOTE: You must be using Java JRE7 on your server to use this plugin! If you are getting an "UnsupportedClassVersionError", then you are using JRE6 and that is the reason why the plugin isn't working!
Configuration
As of now, there is only 1 configurable options in MaxHealth config file:
- Default Health: This is the health (in hearts) that all players will start off with AND the maximum health that each player has (can be changed with commands).
Example:
Default Health: 100
Features and Stuff
I hope to keep this plugin up to date and bug free. Any error or bug report is helpful! :)
New Features
- Compatible with /god
- Lava damage now affected by the plugin
- Added more commands and /mend in place of any /heal command
- Complete restructure! Now more efficient, reliable, and expandable!
- Simple armor support!
Known Bugs
- No /heal command from any other plugin will actually heal a player! Use /mend instead!
- Armor enchantments are not effective as far as I know
To-Do
- Re-add level multiplier
- Add optional economy support to allow health to be purchased
- Chat based health bar or Spout support
- Make health of mobs changeable
- Permissions based health
Credits and Source
- Plugin idea: polkunus
- Idea and testing: gabizou
- Restructuring concept: bm01
Source on GitHub: Source
@tomjw64
Probably i just need to set supernaturals regen to 0 for each race and everything will be ok. I will try to make a video after my exam(friday) :)
@Ktoss
Hmm... Maybe I can try to fix it somehow. What happens exactly? Can you provide a video or screenshots?
@tomjw64 I know why you cant replicate that bug - unfortunately, its caused by another plugin(mmsupernaturals) :(
I uploaded a new version (v2.1.1) to fix a bug where a player's health would not fully regenerate over time. I highly recommend getting it.
@Thingon
Kind of. You could always /health [player] then /sethealth [player]. I suppose that I could make that i tad bit easier :P
@Ktoss
Thanks, and those are all good ideas! I'm working learning some Spout stuff now, and I'm trying to re-implement the dynamic health. As for a permissions system, I think I want to wait until I have all the features that I need first, so that is a low priority.
As for your bug report, I'm not sure what you are saying. I tested with 400 health just now and made sure that I was regenerating with a full hunger bar. I'm afraid I can't replicate it.
Is there a way to add +1 heart through a command?
Hey :)
First thing i want to say - awesome plugin! ive been waiting for smth like that for few months :)
and now some of my ideas:
Dynamically increase players hp(config defined) after getting certain amount of xp - for example 100,200,400...(next = prev*2) rpg style :D if im right, some internal leveling system would be necessary(adding earned xp and storing in database.yml) because of 'earn and spend' crappy minecraft lv system :D
Maybe group hp amount(lets say that we have 3 groups - player, moderator and admin and we want to set their hp to 40, 50 and 60)
(from to-do) spout support would be great, especially if you could add hp bar that would be seen above players heads like in 'HealthBar' plugin which is unfortunately inactive :)
@Flenix1
@Dmck2b
Ok guys, I just released v2.1! This brings a fix for that minor bug, AND it adds simple armor support (without enchantments, hopefully I will add those later). Have fun with 10,000 health guys! :)
Also, let me know if you find any more bugs or if the armor protection isn't right (I had to make the damage reduction myself). Thanks for using my plugin!
@Flenix1
Ok, so the armor problem is a hard fix. I tried damaging the player instead of merely changing the health, but it still did not factor in the armor. It must be handled quite strangely.
The good news: I can add basic armor support and factor it in myself.
The bad news: Enchantments may have to wait...
@Dmck2b
First of all, thanks for your error report! That is indeed a bug that I found yesterday (through my friend continuously hitting me with lightning :P) and have fixed. It was caused by the health going below zero in some cases. Look for a new version by tonight or early tomorrow. Again, the error report is very much appreciated. :)
Hi, running the first R4 Snapshot 1.1, I keep getting thrown this error. http://pastebin.com/U0Rd4e3W . Any ideas on the cause? (only running maxhealth) And if its a bug, cant wait for the fix :)
@Flenix1
Yup, just finished the update, I will get started on the armor and spout if I have time
Hey, the armour issue is bigger than I thought - it seems the plugin stops armour working at all right now? But thanks for working on everything :D
@Flenix1
Thanks for the good ideas! I'm actually going to restructure the plugin when I make it compatible for the new RB today, hopefully it will make it a lot more coherent, efficient, and bug free. I will see if Bukkit will let me mess with the armor while I'm at it. As for Spout support, I haven't really gotten around to learning it. I can try to do that today as well though, since I pretty much have nothing to do. Thanks again, and sorry for the late response. :)
Me again: Any chance of adding support for armour health? Right now, if I've read it right, we can increase the health to say, 100 with this. Then I'd use a damage plugin (ModDamage) to increase damage from mobs to match - but now mobs will just hit armour straight off you.
Reason I'm increasing both is because I'm adding weapons with Spout, and want more flexibility in how much damage weapons do, so boosted health to 100 and mob damage to match - now I'll tweak all the weapon damage :)
Saw in another comment you plan to add spout support to visually change the HP. How is that coming along?
I had a thought, if you are confident with Spout you can disable parts of the GUI - Maybe you could replace the normal "hearts" with some sort of health bar, which would obviously be a lot more accurate.
@ludo0777
I think he meant that if you die and loose your enchantment experience level, you loose your modified maximum health level. In that sense yes. Those who survive longer (live longer without dying, and gain more levels, their maximum health increases).
@ludo0777
Health resets upon death, yes :)
@tomjw64
Oh awesome, and does this mean that they lose their max health when they die?
@ludo0777
It means the amount that a players maximum health will increase for each enchantment xp level they gain.