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! :)
I noticed that when I hower the mouse over the potion it still says +130% strength. Does this mean the plugin does not work? if not, is it possible to fix it so it shows the appropriate text?
@flash1999
My plugin shouldn't interfere with the poison effect at all.
So I downloaded potionfix onto the server. Whenever players get hit by a cave spider they don't get poison. Is this a bug with this plugin or is it something else?
It doesn't seem to work/stack with MCMMO. For example:
Hitting a zombie pigmen with a Smite 5 sword typically will kill it instantly, if you have strength effect on you however they will survive with 1 heart. So with the strength I effect on you actually do LESS damage with a godsword/smite 5 sword to zombie pigmen.
@Dekronos
I feel that this is a good thing, therefore drinking health potions give better effects than splashing!
@The_Doctor_
Can you add a configuration file, if there isn't one already, which allows people to enable which potions to "fix" and which to keep in 1.6+? Say I hate Strength II in 1.6+, but I like Strength I in 1.6+. Or if I splash with a Healing II, it does 4 hearts and if I drink a Healing II, I get 6 hearts?
Thanks The_Doctor_ for this plugin. It's best plugin of minecraft!! :-) But Splash Potion of Healing 1 and 2 doesn't work!!
@thepicshark
Google, YouTube, or Java's instructions should help you with installing Java.
@The_Doctor_
Oh god thanks. Only problem is.. where do I download Java 7 and how does that work I dont even.. (as you can see, I'm a total noob).
@thepicshark
Whoops, looks like I'm compiling with Java 7. I'll release a version compatible with Java 6 soon. But to fix your problem, update to Java 7.
I'm getting an error… [15:59:12 ERROR]: Could not load 'plugins/PotionFix.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/yahoo/brettbutcher98/PotionFix/Main : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:308) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:628) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.Bukkit.reload(Bukkit.java:279) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:529) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] Caused by: java.lang.UnsupportedClassVersionError: com/yahoo/brettbutcher98/PotionFix/Main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) [?:1.6.0_65] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) [?:1.6.0_65] at java.lang.ClassLoader.defineClass(ClassLoader.java:621) [?:1.6.0_65] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [?:1.6.0_65] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) [?:1.6.0_65] at java.net.URLClassLoader.access$000(URLClassLoader.java:58) [?:1.6.0_65] at java.net.URLClassLoader$1.run(URLClassLoader.java:197) [?:1.6.0_65] at java.security.AccessController.doPrivileged(Native Method) [?:1.6.0_65] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [?:1.6.0_65] at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [?:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [?:1.6.0_65] at java.lang.Class.forName0(Native Method) [?:1.6.0_65] at java.lang.Class.forName(Class.java:249) [?:1.6.0_65] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] ... 14 more
Help >.>
The Plugin has a lot of bugs, my Hunger Games server for the 1.7 keeps restarting everytime someone uses a Regen Potion, with this error:
http://gyazo.com/a8abe882a89de08442dc3ce9dd8ef32e
http://gyazo.com/c8d6499dbe954934a9d86aa10bf2e26f
I will send you a recoded version if you want.
@PluginPvP
Awesome! Thanks a lot, I needed a video! Put it up in the main description.
Nice plugin, I did a review http://www.youtube.com/watch?v=h0YE2Lesgjo
Thank you for the configuration feature <3
Good plugin!
Okay guys! I have filled in the requests in this next update that is waiting for approval.
@JesseGall
Fixed.
@xXeclipsXx
Now added a configuration. You can turn fixes on/off and set how powerful the strength and health potions are.
Hey there!
Great plugin, works great but the console shows lots of erros though...
error: http://pastebin.com/QkNBQCDa
@The_Doctor_
Please add this feature! :) That would be very helpful for me!
@xXeclipsXx
This plugin is supposed to replicate the old strength. I may add a configuration for how much extra damage is added in the future.