Potion Fix
Do you own a PVP server and absolutely hate the 1.6 update because of how overpowered strength potions are? Thinking you might need to completely get rid of the strength effect in your server so it doesn't turn mad? Think again! This plugin will restore the former glory of the strength effect from 1.5. It also restores the old healing and regeneration effects, which is also a nice feature.
How it works
Strength Fix
Let me explain the math behind 1.5 and 1.6 strength.
1.5
- Using ANY sort of weapon(including your bare fists), your damage will be increased at a flat rate of 1.5 Hearts/Level of Strength.
1.6
- Using ANY sort of weapon(including your fancy diamond sword), your damage will be increased by 130%/Level of Strength.
Comparison
Let's just say for a moment that we got this guy with a plain old diamond sword. Nothing fancy, like super enchantments, or anything. In 1.5, if that person drinks a Strength II potion and hits a player/mob with their sword, they will deal 6.5 Hearts of damage to that creature. In 1.6, if that same person drank a Strength II potion and hit a player/mob with their sword, they will deal 14.5 Hearts of damage. What???? 8 Hearts difference?! Are you absolutely kidding me??????? Well, just don't worry about it anymore, this will hopefully fix the stress also.
What the plugin does to restore the old strength
Let me just say, this plugin is pretty simple, but it fixes a complicated problem for server owners. All it does is it detects if someone has strength, if so, the new damage increase will be undone. Then the plugin will add the old strength damage on and that will be the product of a hit. Pretty simple, if you ask me.
Healing Fix
1.5
- Base healing is 3 hearts. Health gained doubles every additional level.
1.6
- Base healing is 2 hearts. Health gained doubles every additional level.
Regeneration Fix
1.5
- 1 heart is gained every 1.25 seconds. Time is cut in half every additional level.
1.6
- 1 heart is gained every 2.5 seconds. Time is cut in half every additional level.
Video
Thanks to PluginPVP for the comparisons!
Questions, comments, or suggestions? Just leave them below! :)
@iaXedu
You're saying that this plugin makes it so people do eight hearts of damage with Strength II(80% of the player's health)? That never happened when I tested the plugin, so I'd have to doubt that. In fact, Strength II dealt 3.5 hearts of damage when I was testing, as it's supposed to.
@The_Doctor_
I miss explained:
Potionfix on with str 2 no armor or weapon:
You hit 8 FULL hearths.
Potionfix off with str 2 no armor or weapon:
You hit 2 FULL hearths.
@iaXedu
That's two points off, not four. 12 - (4 + [2 * 3]) = 2
It likely won't be fixed unless I find a clear-cut mathematical error. It doesn't sound like a huge deal, anyways.
@The_Doctor_
It's 4 points off anyway I hope you can fix this keep up the good work.
@iaXedu
It can become a point or two off, but at least it's not giving negative damage.
Nope still not fixed. Tested this with the latest Spigot and without armor and weapons you hit 6 hearths with potionfix enabled and 2 hearth without potionfix enabled with strenght 2.
Good news to many people! This plugin has updated for the newer CraftBukkit versions that had problems with this plugin. It is currently unapproved, but if you would like to see the file before its approval, you can find it here: http://dev.bukkit.org/bukkit-plugins/strength-potion-fix/files/5-potion-fix-1-2-2/ If you are still using older versions of CraftBukkit where the plugin still worked, DO NOT UPDATE.
I'd like to give @Cryices some recognition for the valuable information he gave me, which allowed me to update this to a fully-functional state.
@Cryices
Thanks a bunch for the info! Maybe I can actually get this plugin to a fully functional state now.
@The_Doctor_
I recommend you check out this http://pastebin.com/21rpCeqS (the EntityDamageEvent) if you'd like to fix this plugin, I'm afraid you'll have to work with DamageModifier's. This could also help you http://www.spigotmc.org/threads/psa-major-bukkit-bug-with-entitydamageevent.23059/#post-255473 (and if your interested, this is the EntityDamageByEntityEvent http://pastebin.com/88p1eW6s ). These are all for spigot btw, what I assume everybody is using, and why it won't work.
Waiting for a fix =D
@Chris_GSPvP
I've already tried to fix it, but the values I get in some methods in the EntityDamageByEntityEvent return values that make zero sense.
Yep, some stuff in the plugin is really buggy. Doctor, can you please look into the whole plugin when you get time?
@brendanhf
Same problems, when player with strengh II hits an opponent, the opponent is healed. Fix it please !
@brendanhf
Wait, they fixed the damage problems? Do you know the commit where they did?
I guess you guys didn't realize, but version 1.2 works fine with the latest version of spigot/bukkit where they patched the damage glitches.
Owner has to fix it.
@PhanaticD
I'm interested in knowing if there is any new released planned soon as well :)
Best plugin ever! Anyone with strength 2 can 1 hit everything! (please fix)
hopefully there will be a reliable version soon..?
@brendanhf
How did you disabled strength II?