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.
i am using spigot 1.7.5 its not working i think update is need for 1.7.5
I've installed the older version with the config option of either true or false for XP regarding mob spawners - this version works.
The problem is I am missing out on the cool holo-text popup now when you kill stuff. Is there anyway you could add the XP From Mobspawners: True or False option to a new version as well as having the percentage config? otherwise I'll be stuck on this old version forever QQ lol
@Mandav22
Can she levelup?
@Desle
Yes, this is the only error I show in the log. It appears when she (the player) logs into the server. Could there be some sort of issue with her IGN causing the exception?
@Mandav22
Is the error you provided the only one? Since it only tells that it has to set max HP above0.. So I'm hoping that theres a different error for the cause of this.
@Desle @Desle No other HP managing plugins, and I've tried removing the player from the file and letting it reload. I've also tried editing the players config to manually give them HP, but its always reset to this:
PlayerIGN: xp: 0
The other players have hp, xp, and xp-needed.
@Mortalsinn
No, 100 is full... try 1. And if you want no XP from spawners, check the earlier versions, maybe that solves it for you.
@Desle
yep, using the latest version. Would a video help you see my issue?
I'm setting xp-percentage-from-mobspawners: 0
unless zero means full XP and I am misunderstanding?
@Mortalsinn
I really.. have no idea.. Are you sure you updated to the latest version?
@Mortalsinn
Looking into it after school : )
@Mandav22
Any other plugins that manage HP? And try remove him from the file and reload
I'm having an issue with a single player and this plugin. It works fine for every other player, but will not work for one. If I edit this player in player.yml it gets reset back to XP:0. I get the following error when they play on my server:
[RPGHealth] Task #8996 for RPGHealth v1.3 generated an exception java.lang.IllegalArgumentException: Max health must be greater than 0 at org.apache.commons.lang.Validate.isTrue(Validate.java:157) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.entity.CraftLivingEntity.setMaxHealth(CraftLivingEntity.java:90) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.entity.CraftPlayer.setMaxHealth(CraftPlayer.java:1041) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at me.Desle.RPGHealth.Main$1.run(Main.java:81) [?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:53) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:587) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit_beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
Can you please help me figure out why this is happening? Like I said, it works fine for every other user. But generates an exception for one player.
@Desle
Well, the only plugin I have that affects spawners would be SilkSpawners
http://dev.bukkit.org/bukkit-plugins/silkspawners/
Would that be causing my issues?
Edit: I am also using MythicDrops which names all the mobs as well as McMMO but I'm not sure that has anything to do with the spawners
@NathanTheDragon A different plugin is probably affecting mine, I suspect. Try remove the others and then try.
@Mortalsinn For me it works fine, so maybe .. something else is affecting the plugin. Do you have any plugin working with mobs or mobspawner? And reloading causes the mobspawned mobs to lose their 'tag' and give full XP.
any word on a fix for the spawner mobs yet?
I have a weird glitch. Well NO Errors show, but when people level up and stuff they dont' get the hearts, especially when I use to the command...
@Mortalsinn
I'll take a look at it some time this week.
There are no errors. The mob spawner portion is not working correctly. No matter what I have in the config I get a full level up from spawner mobs every kill
@Mortalsinn
Are there any errors in your console? Since it works fine for me.. hmm..
No fix yet for the spawner mob glitch?
@funxlol
1.7.2-R0.2