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.
@TheoPayton
Someone else had this problem too.... I guess it's not on his end, since you got the same.. Ill check it out.
Hey, I run a bungee, and one of my fellow owners added this plugin to one of our servers. Everyone else can use the plugin just fine, but he seems to be glitched. In the players.yml, he simply shows "xp: 0" and no other data. When I attempt to use in-game commands on him, it says invalid player. Got a fix?
@caydensta123
You can use a different plugin for that, forgot the name though.
Is it possible to make the plugin show the HP under there players nametag?
@NathanTheDragon
It increases by 1/2th heart, each time you level up. I might change that.
@Desle
Well pretty much no error message is shown, but let me explain an example. I am the player Bill, I go kill mobs (That's how I get XP). Finally for example I am at 399/400 XP, I kill one more mob, then finally I level (the effects/animation show, and it says I leveled), but the error is that Bill stil has 10 hearts (20 halfs), it hasn't increased his heart by 1 (2 halfs). Understand? The console shows no error at all, and I am confused.
@aalwein
"Do you mean that the fire tick or the fall damage that actually kills the mob can't be tracked back to the last player who did damage to the mob?"; No, the last damage dealt must be from the player himself. He should hit the mob, for the XP.
@therennon I know this. I have an update, waiting for approval.
@NathanTheDragon Can you reproduce the error and post it here, for me to take a look? Thanks.
This used to work on my spigot build, but it didn't afterwards. You can get XP and such, but when it levels you, it doesn't actually gain hearts for you. You told me a plugin might be causing it, but I don't see any other plugin interfering and nothing is giving out error messages, everything is as smooth as butter. Any clue?
Thanks, ~ Nathan
Hello,
the plugin does not work with the latest version of "Spigot".
Greetings and thanks.
@Desle
If by last player you mean the last player to actually hit the mob, then I should be getting exp when I'm not because I'm the only player around. Do you mean that the fire tick or the fall damage that actually kills the mob can't be tracked back to the last player who did damage to the mob?
@aalwein Like I said, it only gives XP to the player that dealt the last damage.
@Mortalsinn I know.. My plugin needs to be updated for every craftbukkit version...
@Quinlan102 I don't help with issues, that cause errors and use spigot.
@Desle
It doesn't show the exp animation when I kill a mob with some passive damage, such as fire. I will double-check if it is actually giving the exp.
Edit: Did some testing and I'm definitely not getting any exp from mobs that die from the fire effect of an arrow or when knocked off a cliff with a sword or fist strike. (CB 1.7.2R03)
It look like you do support it
[Enabling RPGHealth v1.3] this is on 1.7.2
rpgheath does work with spigot
not sure if you know but RPGHealth breaks with Minecraft 1.7.5
@aalwein
It already gives the xp to only the player that dealt the last damage.
Not sure if this can be handled or not, but when I kill a mob from indirect damage (such as knocking them off a cliff or from fire damage on a bow), I don't get any exp from the kill. I don't know if you can code "last player to hit/touch mob gets the xp" or not, but it would be nice! Otherwise, loving your plugin!
Is there any chance of you adding support for spigot I need this plugin for my server!
@Quinlan102
I don't support spigot, sorry.
23.03 03:36:59 [Server] INFO at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:440) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at net.minecraft.server.v1_7_R2.DedicatedServer.init(DedicatedServer.java:135) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugins(CraftServer.java:356) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:216) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO org.bukkit.plugin.UnknownDependencyException: ProtocolLib 23.03 03:36:59 [Server] ERROR Could not load 'plugins/JSONAPI.jar' in folder 'plugins' 23.03 03:36:59 [Server] INFO ... 6 more 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at java.lang.Class.forName(Unknown Source) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at java.lang.Class.forName0(Native Method) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R1.EntityCreature 23.03 03:36:59 [Server] INFO ... 6 more 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at java.lang.Class.forName(Unknown Source) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at java.lang.Class.forName0(Native Method) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/EntityCreature 23.03 03:36:59 [Server] INFO at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:440) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at net.minecraft.server.v1_7_R2.DedicatedServer.init(DedicatedServer.java:135) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugins(CraftServer.java:356) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/EntityCreature 23.03 03:36:59 [Server] ERROR Could not load 'plugins/ZombieSurvival_v3.8.3.jar' in folder 'plugins' 23.03 03:36:59 [Server] INFO ... 6 more 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at java.lang.Class.forName(Unknown Source) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at java.lang.Class.forName0(Native Method) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R1.Packet 23.03 03:36:59 [Server] INFO ... 6 more 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at java.lang.Class.forName(Unknown Source) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO at java.lang.Class.forName0(Native Method) [?:1.7.0_45] 23.03 03:36:59 [Server] INFO Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/Packet 23.03 03:36:59 [Server] INFO at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:440) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at net.minecraft.server.v1_7_R2.DedicatedServer.init(DedicatedServer.java:135) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugins(CraftServer.java:356) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) [custom.jar:git-Spigot-1345] 23.03 03:36:59 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/Packet 23.03 03:36:59 [Server] ERROR Could not load 'plugins/RPGHealth.jar' in folder 'plugins'