RPGHealth
Overview
RPGHealth is an unique plugin, unlike many others, that allows you and your players to level up your HP by killing other players or mobs. This plugin finds it's place on every type of server.
- It makes PVP more fun and adds a new challenge, instead of collecting diamond gear.
- With survival, a whole new objective gets added.
- Minigame servers, for a new type of 'skill'.
I've completely redone the coding of this plugin, to make it even smoother and to improve what the plugin does, such as new animations.
Commands And Permissions
Command | Permission -------------------------------- /rpghp gethp rpghealth.gethp //rpghp gethp <Player> //Gets the amount of hearts of the targeted player. /rpghp sethp rpghealth.sethp //rpghp sethp <Player> <Number> //Sets the HP of the targeted player to the number you defined. /rpghp tmphp rpghealth.tmphp //rpghp tmphp <Player> <Number> //Sets the HP temporary. /rpghp addhp rpghealth.addhp //rpghp addhp <Player> <Number> // Adds defined number of HP to the targeted player. /rpghp addxp rpghealth.addxp //rpghp addxp <Player> <Number> // Adds defined number of XP to the targeted player. /hp rpghealth.hp //hp //This will show you your progress to your next HP level. //If you want to check the progress of another player, you need the permission "rpghealth.hp.others" and to type "/hp <playername>". /rpghp reload rpghealth.reload //rpghp reload //Reloads the configuration file, saves players.yml and checks for updates. -------------------------------- Permissions : rpghealth.hp //Allow the players to earn XP Groups permissions (only if "use-groups-permissions" in the config is enabled): rpghealth.lvl.low //Players with this permission can level up to max 24 HP by default. ( ' (startinghp + maxhp) / 2.5 ' ) rpghealth.lvl.med //30 by default ( ' (startinghp + maxhp) / 2 ' ) rpghealth.lvl.max //full (40 by default) (maxhp) rpghealth.damagemultiplier //Allow the players to use the damage multiplier
Configuration
This is an explaination of how the configuration file works.
configuration: max-hp: 40 //Sets what the heighest HP achieveable by leveling is. starting-hp: 20 //Sets the HP of new players that are not in the storage. needed-xp-formula: 20*HP //This will set the needed-xp. xp-percentage-from-mobspawners: 20 //This sets the percentage of the mob's XP if it comes from a monster spawner. xp-lost-on-death-formula: 4*HP //The XP you lose on death hp-display-scale: 1.0 //Scales your HP enable-names-xp: false //enabled names-xp list minimum-level-to-earn-xp: 0 //Minimum level to earn xp multiply-gained-xp-with-levels: false //Multiply gained xp with default Minecraft levels xpmessages: true //Toggles XP messages. (requires Holographic Displays) disable-in-creative: true //players in creative mode do not get more xp reset-hp-on-death: false //sets the players hp to the starting hp on death damage-multiplier: false //Players with more Health do more damage. use-groups-permissions: true //Enables extra permissions for groups heal-after-world-change: false //Heals the players during a world change. silent-console-commands: false //Mute console output on 'addxp', 'sethp' and 'addhp' levelup-particles: true //shows particles on level up enable-sounds: true //Levelup and mobkill sounds check-for-updates: true //Allows RPGHealth to check for updates mobs-xp: //This is a list where you can define howmuch XP each mob drops. BAT: 2 //The XP of a bat is set to 2. BLAZE: 7 //And so on.. CAVE_SPIDER: 4 CHICKEN: 1 COW: 1 CREEPER: 3 ENDER_DRAGON: 350 ENDERMAN: 8 GHAST: 7 GIANT: 140 HORSE: 4 IRON_GOLEM: 13 MAGMA_CUBE: 5 MUSHROOM_COW: 2 OCELOT: 2 PIG: 1 PIG_ZOMBIE: 6 PLAYER: 0 SHEEP: 1 SILVERFISH: 4 SKELETON: 3 SLIME: 1 SNOWMAN: 1 SPIDER: 3 SQUID: 1 VILLAGER: 3 WITCH: 6 WITHER: 150 WOLF: 3 ZOMBIE: 2 ENDERMITES: 2 GUARDIANS: 4 RABBIT: 1 names-xp: //This is a list where you can define howmuch XP a mob with a certain name drops. - examplemobname1 = 8 - examplemobname2 = 6 nonaffected-worlds: //worlds where HP is not affected/levelled. - exampleworldname1 - exampleworldname2 player-storage: //Here will be all the players that have joined the server. (Desle): //The uuid of the player. name: Desle (only if save-player-names in the configfile is set to true) hp: 34.0 //The HP of a player (level). xp: 0.0 //The XP of a player. xp-needed: 1020 //The needed XP of a player to rankup.
Tutorials and Reviews
Go to the Videos page.
Backports
You want to use a newer RPGHealth version with an older Minecraft version? You can find backports here.
Support
If you have questions or ideas, post them here.
Localization
You can change the messages in messages.yml or download presets of this file.
Updates
RPGHealthPlus checks spigotmc.org for updates and will notify Ops if a new version is available. You can disable this in the config file.
Get Involved
If you found a bug or have an idea to make this plugin better, write about it here:
https://github.com/Bleuzen/RPGHealthPlus/issues
or here:
https://www.spigotmc.org/threads/rpghealthplus.61566/
Metrics
This plugin uses Metrics-Lite to track anonymous data about servers using this plugin. It has no impact on your server's performance. You can see the statistics here. If you want to disable it, open the configfile in /plugins/bStats and set enabled: false.
Something that would make this EXTRODINARY was if you could add permissions to how much HP someone would have. Like for example:
Peasant has the permission 'rpghealth.hp.5' he would have 5 HP. And if the rank King had the permission 'rpghealth.hp.10' he would have 10 HP. This would be AWESOME!
@Desle
It's working now, thanks :3
@CommodoreAlpha
I've added /gethp <player> in the newer version and NO it does not use the vanilla XP system. And if i were to make it compatible with PermissionsHealth, it would need PermissionsHealth in order to work. I'm new to Java and i do not know how to make this plugin compatible with other MaxHealth plugins.
With the new XP system you have in place there, does that replace the vanilla xp system used in enchanting? Or is this new xp system only for leveling up one's health?
You stated that you won't implement "/hp <playername>" since that wouldn't be as fun, but mind you, that's assuming all players have the permissions to do it. That would be a useful command for moderators and the like, so it would be a good idea to add that command, but also limit it by a permissions node.
Would this be compatible with something like PermissionsHealth? Perhaps you could add compatibility by adding a new variable to the "StartingHealth" option you have for players. So instead of having the "Player's Starting Health" variable equal to some integer, you could also have it equal to "PermissionsHealth", which basically means to let PermissionsHealth set the number and for this plugin to work from there.
What I mean is this: PermissionsHealth edits the base health of players, but nothing more. So instead of this plugin setting the base health, it could let PermissionsHealth do that, while this plugin just builds off of whatever number PermissionsHealth sets.
Also, and this is a bit of a far-fetched request, but I'd rather not use your current system of leveling, because it involves the mundane task of simply killing mobs. I'm wondering if it would be possible to have an optional dependency on mcMMO so that I can tie in health-leveling with leveling one or more mcMMO skills. This is not intended to replace your current system, but rather, provide an alternative.
How hooking into mcMMO would work, is that I can specify one (or more) of four arguments in order for a player to level up his/her health (by a configurable amount). I could say:
mcMMO's system might be a better alternative for some admins to use, because it already has much breadth in activity: instead of simply killing mobs to level up, you can do many other activities to level up, depending on which argument one used.
Is there a permission node for the /gethp?
@xUntamedRagex
Thank you! : D
One of the best plugins around!! Good work Desle :)
@marlboromoo
Sorry, I''ll fix the world and plugin.yml issue.
Edit: All fixed. sorry.
http://dev.bukkit.org/bukkit-plugins/rpghealth/files/6-rpghealth-v0-4_7/
@marlboromoo
Said it was fixed in the next version that is being reviewed by BukkitDev staff atm.
Also, Desle, can you add a dev build section so that we can get access to that 4._7
Exception when a player go to other world.
@desle There is a bug in V0.4_7, /getxp command should be registered in the plugin.yml or got the "unknow command" error :3
Hi Desle, another suggestion: Moving the player's data from config.yml to other file or each player a config file ? e.g players/foo.yml
@SDDJ
You should ask the dev of mobarena. I have no clue how to do that.
Would it be possible to have this hook into MobArena so that players do not get experience for killing mobs while playing in the arena? In my arena, there are quite a few mobs, so that could cause it to be too easy to level up.
@TheSigler49
This should be fixed in the next version. Try respawn or relog, this should fix it.
Not sure if on purpose, or bug or if its fixed. Whenever players go to the end or nether, and come back to the main world, it completely resets all their hearts while the HP bar still is the same. I just tested it with 11hearts, went to the nether, and then came back and it reset back to 10 with "103.0/550.0 18%" The base one is 500 so it didnt reset the HP exp bar just the health itself.
@desle If you need to contact me, just drop me a email :)
@Desle
Thanks for your update! love the plugin! p.s I use this plugin on my server :3