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!
HI
No compatibility for 1.7.2 R0.3? :(
Please add 1.7.2 R0.3 compatibilty please, because not all other plugins are 1.7.9 compatible so I'm sticking with 1.7.2 R0.3.
Please! make it compatible with 1.7.2 R0.3? :))
@Redstoner_Pro
I mean like, could I set my health below 20 health or 10 hearts?
Anyway to get an older version of this? The one for 1.7.9 doesn't seem to work on my Cauldron (Formerly MCPC+) 1.7.2 server, and the link to older versions only contains the source...
Any help would be amazing, thanks (:
Hello. I use spigot r0.3 server. If MoreHears V2.1.2 is On, server has critical lags and freezes. Can you fix it? Sorry for my language.
@JackzMc
/morehearts set <player> <amount>
Use 0 for amount.
Could you make it so you can remove your max health?
@PlusMCPKBPK
Have you tried it with 1.7.9? 2.1.2 was built for 1.7.9 and may not work properly for older versions. This was stated just a few posts down from yours.
I cannot hide extra heart in 1.7.2 Moreheart2.1.2
@Redstoner_Pro
Thanks for helping people in the comments, I appreciate that :)
@MozaiX Doing something like that would make the config much more complicated than would be needed. For your situation you could easily add negative nodes on the progressive groups.
group1: morehearts.group1
group2: -morehearts.group1 morehearts.group2
group3: -morehearts.group2 morehearts.group3
You would need to check the documentation of your permissions plugin to know proper syntax for negative nodes. In pex and a few others they use - before the permission to do so.
Wouldn't it be better for each player to get their own file instead of them all being added into one file? Loading that file is going cause some serious lag after a few weeks when its like 30k+ lines long
Your permissions are not compatible with group inheritances. for example, I have 3 ranks on a promotion ladder.
group1 group2 group3
group 3 gets all hearts from group1 and group 2 plus its own. so if i have: morehearts.group1: 2 morehearts.group2: 3 morehearts.group3: 4
group 3 will receive 2 hearts from group 1 and 3 hearts from group 3 because of inheritance.
fix 1: groups can only receive one morehearts.permission
fix 2: add in config:
@Davdinges
These features do not only relate to donator perks. This was added as an example of how you can create different permission groups. Servers can still use this as a way for different classes of characters (archers, knights, monks, warrior) to have different health levels.
Since EULA is going to change i suggest you remove the donator feature and permissions, since its in conflict with the new rules...
@LB1
I used only Bukkit API no craftbukkit or packets and all those stuff because I just don't like to use it :P
@markGod
No. This plugin should work on versions 1.7.6+
Does this work with 1.7.2?
Hi, did you use Bukkit API to do this or did you have to use CraftBukkit and NMS? If the latter, you should contribute to the Bukkit API ;)
@Dutch_Boy
The permissions in 2.1.1 are working but there is a bug with teleporting that has been fixed in 2.1.2 (should be up in 2-3 days)
Oke someone how its working now.
Sorry for the late response. Bin really busy last couple of days.