PlayerBar
Owners
This plugin is mainly designed as an API but if you use it standalone on your server it will act as a new health system!
Plugin Developers
To use the API just drop the plugin into you're java build path.
API
Functions
PlayerBar.getHealth(player) Will return the health of a specific player.
PlayerBar.getMaxHealth(player) Will return a player max health.
PlayerBar.getMessage(player) Will return the message displayed on a player's bar.
PlayerBar.hasHealth(player) Will return if the player has a bar or not.
PlayerBar.setHealth(player, health, livingEntity, killAble) Will set a player's health, if the player wasn't hit by anything set the livingEntity as null and if the player wont die from the event set the killAble as false.
PlayerBar.updateBar(player, livingEntity, killAble) Will update the bar for a player, leave the livingEnitty as null if the player wasn't hit by something and set killAble as false if the player can't die from the specific event.
PlayerBar.setMainDisplay(player) Will display the bar of a specific player on everyone's screen.
Metadata You can get a players "playerBarHealth" metadata to get his health, if you don't want to use the plugin API it'self!
If you change the damage of the EntityDamageByEntityEvent the damage taken should decrease the player health.
Custom Event
event.getAttacker() Returns the entity which attacked the player, if none will return null.
event.getHealth() Returns the player health after being changed.
event.getMaxHealth() Returns the player max health.
event.getPercentage() Returns player's ..% health.
event.getPlayer() Returns the player triggering the event.
Use "HealthUpdateEvent" to trigger the event!
Configs
Increase Health After Time: true - Set to false if you don't want players to regen hp.
Increase If Player Has Hunger: true - Set to false if you want players always to regen hp.
Health Type: bar - Sets the type of bar which will be used ( bar, normal, text ) [ Keep in mind to restart the server if you change this and you use v0.4! ]
Update Time: 5000 - Set the amount of times for the players to gain hp ( milliseconds ).
Health Increased After Time: 1 - Set the health regenerated every update.
Message: 'You have %health% health and level %level%' - Set's the message on the base ( tags supported: %name%, %level%, %health% , %maxHealth%, %expToLevel%, %food%, %flySpeed%, %speed%).
Default Max Health: 20 - Set's the default max health, which will be set when a player joins for the first time.
Plugins using PlayerBar
Send me a private message with you're plugin if you are using PlayerBar.
What this actually does
If you use this plugin all by it'self it will change the minecraft old healthbar to a new one way more configureable!
Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier.
- The server's version of Java.
- Whether the server is in offline or online mode.
- The plugin's version.
- The server's version.
- The OS version/name and architecture.
- The core count for the CPU.
- The number of players online.
- The Metrics version.
- Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
Reminder
This plugins changes the way minecraft health works, keep that in mind!
@StreetkillnHD
I'll try my best to fix those issues.
@99razvan99
idk i just unstalled it and everything seems fine without the plugin. i like the plugin and would want to use it but my users complain bout the health issuses
Sweet!
@StreetkillnHD
Well, I'll see about the bows and lava but both were working for me when I've released the version 0.8.
i installed this and havent touched anything. theres a few issues im finding with this.
some mobs like zombies, creepers and spiders. when they attack you the bar goes down. but with skeletons they have no damage?
also i have issues where if you fall, step in lava or drown. your heart points get taken away but not the health bar. the heart points are not regenerating aswell.
Except a major update, with things like, keeping a player's health on server reload and many usefull things.
@Frankjeux123
You can change the message about, check the configs.
Huh, the new version was finally approved!
For some reason, the file isn't getting approved :?
Btw, I'm just letting you guys know, I may, mostly likely host/own a server, soon(RPG), I'll give you more details when I'll get closer to the release ( With almost/every plugin codded by me :D )
@Newiezz
For some reasons it's still not approved ....
@99razvan99
Awesome, I will test out the new changes right now. :D
@euro1988
This version, in my opinion, is the best version of factions, it has the /f chat, no core plugins, slightweight and it works with the most recent version of bukkit and spigot. I think it would be a little hard to make the plugins work together.
PS. Is there a link to download the latest versions? I have been searching the 0.7 on curse but I am not able to find it T.T
@euro1988
Oh, actually, nvm, the factions API keeps changing, you need to update to the latest version of factions.
@euro1988
Umm, how are you actually using the v0.7, when it wasn't been approved?
Btw, that should be fixed in the actual v0.7.
Another bug, health isn't changing (Using factions 1.6.9.5) http://pastebin.com/X62byNdD
@Newiezz
I've fixed the armor too. :D
@DivinityCraft
The plugin allready adds support for Factions SafeZone, so yeah, I may.
Would you consider adding Vault and Factions support so that the player's balance and power can be displayed? These would be very helpful additions.
@Newiezz
Huh, actually I've managed to fix the fall damage bug :D
@Newiezz
Thanks :D