Permissions Health
"PermissionsHealth - change the way you play"
About
PermissionsHealth optimized!
Ever wanted to make a RPG server and have each class have it's own HP, like a Tank that has 40 health or a Archer with 15 health? Well now you can!
PvP Fights too short? 20 health just not cutting it? Well change that!
PermissionsHealth lets you change all that just add the Permissions node to the group/classes/races/factions do I need say more?
Oh almost forgot, PermissionsHealth not only lets you change the Health but set it to whatever you want in the config - that's right, you want 1000 Health? Well DO IT!
Features 2.1
- Custom Health for Groups/Classes/Factions/Races that you have in your Permissions
- Lightweight
- Easy to use
- Custom permission nodes
- Ability to add nodes in-game
- Now able to change Health of node's in-game
- HealthRegainScale (read config)
Example
In this photo I used HealthDisplay to show the example of health change.
VIDEO
Thanks to Reoss for showcasing PermissionsHealth on YouTube zockkingLP =)
If you have a video you like to submit just PM me or leave it in the comments. If it showcases the plugin or shows how to fully use it I would love to add it =)
Configuration
PermissionsHealth has had a whole new makeover, please check up on new config page.
Commands
Command | permission | description |
---|---|---|
/phr | phadmin.reload | reloads the config |
/ph reload | phadmin.reload | reloads the config |
/phh | phadmin.heal | used to to fully heal you |
/phh <player> | phadmin.heal | used to to fully heal a player |
/pheal | phadmin.heal | used to to fully heal you |
/pheal <player> | phadmin.heal | used to to fully heal a player |
/ph heal | phadmin.heal | used to to fully heal you |
/ph heal <player> | phadmin.heal | used to to fully heal a player |
/ph hp | phadmin.showhp | used to view your current health |
/ph hp <player> | phadmin.showhp | used to view target's current health |
/php | phadmin.showhp | used to view your current health |
/php <player> | phadmin.showhp | used to view target's current health |
/ph add <node_name > <healthvalue> | phadmin.add | Add's a new Node to the config |
/ph update <node_name> <healthvalue> | phadmin.update | Updates the Node's Health in config |
[NOTE: ophealth & defaulthealth must be changed from config no command for them yet same with HealthRegainScale
Permissions
Permissions are unlimited but need to start with "permissionshealth.", eg:
permissionshealth.mynewpermission
permissionshealth.hello_kitty
permissionshealth.best_class_ever
Any dot in the permission name is replaced with an underscore. When you're in-game and type /ph add level.1 30 - it will turn out like this:
permissionshealth.level_1
Permissions Plugins Note:
When dealing with inheritance check here permissions inheritance.
Recommended Plugins
Lore Attributes | ![]() | |
Health-Heads | ![]() | |
Health-Bar | ![]() | |
HealthDisplay | ![]() | 1000 health displayed as 500 hearts meaning 2 health = 1 heart. |
TimedPex | ![]() | Automatically ranks users to another PermissionsEx group after a set period of time. This can be useful for servers that have a hierarchy by gameplay time, or to automatically change players from 'default' or guest ranks to 'member' for being active on a server. |
ServerSigns | Lets you buy permissions, groups, ranks, classes & races with in-game money. You can add a Permission Health node for them, increasing or reducing max-health depending on your preference. |
Do you have (or know of) a plugin that you think works great with Permission Health and would like to see it up here? Leave a comment below and give me the link to check it out =)
Permission Plugins
zpermissions (Untested)
yapp (Tested)
permissionsranks (Untested)
grouppermslite (Untested)
permissionsex (Tested)
permbukkit (Untested)
totalpermissions (Untested)
bpermissions (Tested)
droxperms (Untested)
xperms (Untested)
If you are using one of thse permission plugins and can confirm it works let me know =D
PermissionHealth should work with all these but still like to add it.
Optional Plugins
HealShow | ![]() |
Pvp-Health | ![]() |
Any plugins that have to deal with health being displayed in chat can result in a lot of spam or slow your server down. Test them out and if they work for you that's great.
Current Build
- Craftbukkit 1.5.1-R0.3 #2760
- Bukkit 1.5.1-R0.3 #1756
- Java 6
Installation instructions
- Download PermissionsHealth.jar
- Drag and drop it in to your /plugins
- Start the server once to generate a config.yml file
- Setup you config file change health how you want it.
- Open permissions plugin you are using and add the node to the groups you want them to.
- You're ready to go!
Removal instructions
Before you just remove PermissionsHealth:
- make sure everyone quits the server this ensures
- there Health is set to 20 when they logout
- after that remove PermissionsHealth
- When players join server they will be in temporary god mode
- to get them out just hit them with a heal or throw a splash health potion at them
Other Plugin Conflict
- PermissionsHealth may have conflict with plugins that display ASCII HP-bars. (Tested) if it's a chat display of health they may cause spam to you and your users. in the chatlogs
- PermissionsHealth may have conflict with plugins that set your max health. (Tested) Other Plugins that allow you to set your health will no longer work due to events that are places to maintain health from staying or bring abused. Events are: PlayerJoinEvent & InventoryCloseEvent that set that health to the configure amount (InventoryCloseEvent was implemented so health would be updated if Player Gained a New permission Node or GuestHealth was changed from ingame.), now PlayerKickEvent & PlayerQuitEvent set the player to 20 health the reason this is in place so if plugin is removed the player does not keep the health he obtained from the plugin.
- Just talked to garbagemule about fixing health for Mob Arena and in his next update it should now fully heal you when joining MobArena =)
Bugs?
/ph reload gives Ah internal error occurred while attempting to perform this command This only happens when you have a higher amount of Hp and then lower it in the config and type reload, but don't worry even thought it gives you that error we added a small work around so when you get the error rest assured the command worked
Servers Running PermissionsHealth
Do you have a server that is running PermissionsHealth? if so give me a address and i add you on here =) (Note:I can only add servers that are running online mode.)
Support Banner
Does your plugin support Permissions Health? or you want to show others you use permissions Health then heres a small banner =D
http://oi40.tinypic.com/2vtb4vr.jpg
@monstercat101
thats the health check it making sure your set to the right health amount it should only do it once in and a while not all the time
@noraver
Ok, it works now, thank you so much :) So many ideas for this plugin, thank you for making this! Although I dont know if this is normal, but I get randomly hurt, as in my screens moves to show I was hurt, but im not actually hurt, doesnt happen when I disable this plugin. Ideas?
@monstercat101
tested it myself and i never used groupmanager intell today =x i show you what i did and everytthing seem to work fine
http://youtu.be/8DtTuUrdRY4 if you want to watch it in 1080p HD
i killed him for the hell of it you don't have to do the same LOL
@noraver
I am typing these commands: /ph add cat 50 /manuaddp <player> permissionshealth.cat
nope groupmanager was tested to be working i just forgot to add it up .. how are you putting the permissions in?
Does this work with groupmanager?
Permissions don't seem to be working for me? Does this need an update to work?
@ChengZi368
sorry for the late reply but yes PermissionsHealth supports 1.4.7
@noraver
DOES THIS SUPPORTS 1.4.7?
PermissionsHealth 0.2.01 is now approved
Please make sure to read the notes alot of changes
@ZariusT
Oh haha didn't even notice you were an author! Thank you very much :)
@nighteyes604
No worries, your explanation was fine :)
Just letting you know that I've added this in "API" method in and (assuming noraver approves of it) it should be in the next release.
Here's the some of the method comment for your info:
That'd suit your needs?
when you use mob arena it sets your health to 20 so you have to heal and then it set your heal to 20 again when you enter the arena so you have to heal again sadly this is on mob arena and not premissionhealth
Trying to get this to work with mob arena to give different classes different hp amounts but it isn't working, I'm not sure how mobarena applies its temporary class permissions so that might be the problem, guest and op hp amounts still work since they aren't permission based though.
@ZariusT
Issue is plugins that change the player's max health (such as mine) lose the original value this plugin would set. My plugin adds to max health but in order to make sure I don't let people infinitely stack bonuses I need a baseline.
I can track the player's health when they first login and try to use that as a baseline, but the issue is if the player's permission changes in this plugin mine won't adjust the baseline.
As a temporary work around I can duplicate the listener permissions check, but that would mean I have to change that every update. An public function would let noraver simplify their code and let other plugins access it easier.
Sorry if you didn't want the long explanation but it's late and I ramble :)
@nighteyes604
Couldn't you just use player.getMaxHealth()?
Hey, could you add a public method I could reference as an API to get the health a player would be set to? It would be useful for reference with http://dev.bukkit.org/server-mods/lore-attributes/ .
something like:
or even using a string. Would just save time so I don't need to hook into all of your permission nodes - you could even change your event listener to reference it too.
@jessefjxm
Donno know of one was thinking of making a leveling plugin we will see =)
Is there any plugin that combine the level with health (except heroes)? If so, that might work perfectly with this plugin :)
@2234twotoo
Thank you =)
This seems like an amaaaaazing plugin! Great Job!