More Hearts
More Hearts!
Ever wanted to give more health for donators in your servers or just become unbeatable?
This is the plugin for you! With More Hearts you can add more hearts to players(duh..) with commands, config and even custom permissions!!
Using an older version? click here
ABANDONED
I'm not going to update this plugin anymore and I don't even know if I will ever return to make plugins.
making plugins was my hobbie and now when I got more importent things to do I dont think that I will be able to keep up with this plugin.
I want to say thanks for all the downloads, I never thought I will get so many :)
Feel free to continue it / decompile it or whatever you want (just give me some credit ;) )
Commands
<> - Required [] - Optional
Command | Permission | note |
---|---|---|
/morehearts | morehearts.help | Will display all commands for the plugin |
/morehearts add <player> <amount> | morehearts.add | Give this guy some hearts! |
/morehearts refresh | morehearts.refresh | Refresh everything :D |
/morehearts set <player> <amount> | morehearts.set | set extra hearts for a player |
/morehearts addworld [world] | morehearts.addworld | if you will not enter the world name it will enable the plugin in th world you are in |
/morehearts addallworlds | morehearts.addallworlds | This will add every loaded world |
/morehearts removeworld [world] | morehearts.removeworld | if you will not enter the world name it will disable the plugin in the world you are in |
/morehearts worlds | morehearts.worlds | List of worlds that the plugin is enabled in |
/morehearts reset <ResetPassword> | morehearts.reset | Will reset the config :O (you can find/change the password in the config) |
You can add custom permissions in the config!
Example:
If player will have 73 hearts more he will have 83 hearts in total (73+10) and it will look like this:
Thats alot :P
Config:
The config is really easy and simple, Here is an example:
//Adding hearts Players: 7887b7b5-f79c-4625-bbd9-3e827ebc3f00: //his UUID LastSeenAs: roei12 //His Name HP: 28.0 //The HP he has ExtraHearts: 100.0 //Extra Hearts :P //Adding permissions Permissions: donator: 20 //if someone will have the permission morehearts.donator he will have 20 hearts more! DefaultHearts: 10 // I know its called default health but its the default hearts for your server (normal - 10 hearts) //Worlds EnableIn: world1,world2,world4 //Now the plugin will work only in the worlds: world1, world2 and world4 //Hide extra hearts? HideHearts: false // Now the extra hearts will be hidden :D //Reset password ResetPassword: random number (you can change it to whatever you want) //Used for /mh reset to reset everything in the config (except the password :P)
Changelog:
2.0
- Recoded everything :D
- Updated to 1.7.9
- Has UUID support (so if a player will change his name then his extra hearts will stay)
- Fixed the "hearts staying after removing the plugin" bug
- added reset command and reset password :O
Suggestions:
Do you have any ideas for improving this plugin?
Tell me in the comments or in pm!
Could you add support to LoreAttributes health? It will be great! :D
@TomDaGunner
to add a half a heart to player Notch /morehearts add Notch 0.5
in configs 0.5 is half a heart 6.5 is 6 and a half hearts.
@roei12
Thank you. Still no chance of absorption hearts yet? would be great if u did :)
Hi nice plugin, could you add the ability to set/add half hearts? or if that's already a feature, could someone tell me how to do it?
@Redstoner_Pro
ok i think i will work on it later.. it will not be that hard to do.
edit: done :)
I understand that i can hide it, but you are essentially storing pointless information. What is the reasoning behind storing a value of 0 for every player that joins the server regardless if they do or don't obtain extra hearts. Just bad coding practice in my mind. When the command to add/set hearts is run, it should check if player exists in the database, if not, create them and set. Not when the player is joining the server. Even if you don't move the players information to a diff file could you at least stop writing a crapton of 0's to the file? My config is already close to 500 lines large. At one point you turned down one of my ideas because you wanted to keep the config simple, but with all these pointless values in there its becoming over crowded.
@Redstoner_Pro i dont really want to change all that right now.. i will do that the plugin will automaticly add nether and end. if you are using Notepad+ + to edit YML files you should be able to hide the Players section. if not, you should. notepad+ + is great for editing those kind of stuff.
@roei12
I think i found the issue. I didn't notice the new section below for enabled worlds. I added my worlds in there and I think its working no. I still have further testing to do.. It seems your plugin will detect the main world the server is using, but doesn't add in the nether or end worlds to that list. This may be something you might want to add.
Edit - A suggestion - You are currently tracking players additional hearts in the main config, even if they are not getting any extra hearts. My server has many players come through on a daily basis with new players joining every day. This is starting to cause so many names to appear in the config. Would it be possible to move them to a diff file - players.yml instead of storing them in the main config. Also, to reduce the size of this file, could you only add players there that have a value to store? - If playerExists return storedValue - else return 0
@Redstoner_Pro
i think it because Mcmmo, i have no idea why its doing that, and i pretty sure i cant fix it :/
I can report also that people lose the extra hearts on world change. It seems to be any form of teleportation - /warp /tp /mvtp /world Plugins we have that may be affecting it - MCMMO,Multiverse,essentials
@roei12
maybe mcmmo ?
@bjbrandon1
http://dev.bukkit.org/bukkit-plugins/more-hearts/files/9-more-hearts-v1-6/
@BoyDerAmBlockChillt
I really dont know why you have this problem.. i tryed to setwarp with essentials and teleport, i didnt saw any bug with that..
i know im a noob but how do u get this plugin?
v 1.6
@BoyDerAmBlockChillt
did you downloaded the new version for my plugin? i tested it and it seem to be fixed..
@roei12
It isn't.
@BoyDerAmBlockChillt
@Kamisann
ok, it should be fixed in the next update :)
i'vegot the same problem as kamisann.
@roei12
The latest one, 1.5.
@Kamisann
what version are you using?
got a problem:/ once I teleport using other plugins, lets say essentials's warp command, and the health just changes to the default one. Just the health but not the health limit I mean. Any way to solve this?