Could you add a chance for each effect based on each drug? In addition to this, could you add a "Nothing happened" effect?
For example, I could set a 90% chance for a heart attack and a 10% chance on drunkenness on "Drug A" while "Drug B" has a 40% chance of making you puke, a 40% chance of nausea, and a 20% chance of blindness.
I feel the plugin would be all the more better if we could fine-tune it via more specific configurations. :)
14:16:46 [SEVERE] Could not load 'plugins/DrugMeUp.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/giinger/dmu/Drugs : Unsupported major.minor version 51.0
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217)
at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:52)
at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11)
at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.UnsupportedClassVersionError: me/giinger/dmu/Drugs : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
... 9 more
Keep in mind, when you want to use an apostrophe, you have to put 2 of them. Also make sure that you're surrounding your strings in apostrophe's and not quotation marks.
I'm also going to look into why milk has infinite usage.
So, I've noticed sometimes my drugs will do the appropriate listed effects, and sometimes they'll either do ALL the effects or ones that aren't listed under "effects". 'TYPE: ALL' means it will give ALL the effects listed under 'Effects', right? I get no errors or anything.
-
View User Profile
-
Send Message
Posted Jan 27, 2013@Thisnamewilldo
Uploaded a fix for this, so when bukkit approves this next version it will fix this problem and the problem with the effects not applying correctly.
-
View User Profile
-
Send Message
Posted Jan 27, 2013GLITCH: If you rename the item which is a drug, you get unlimited drugs, it does not take it away from you!
Please fix ASAP!
-
View User Profile
-
Send Message
Posted Jan 26, 2013Could you add a chance for each effect based on each drug? In addition to this, could you add a "Nothing happened" effect?
For example, I could set a 90% chance for a heart attack and a 10% chance on drunkenness on "Drug A" while "Drug B" has a 40% chance of making you puke, a 40% chance of nausea, and a 20% chance of blindness.
I feel the plugin would be all the more better if we could fine-tune it via more specific configurations. :)
-
View User Profile
-
Send Message
Posted Jan 26, 2013@joereider
Try updating to Java 7.
-
View User Profile
-
Send Message
Posted Jan 26, 2013I keep getting this error when i start my server:
14:16:46 [SEVERE] Could not load 'plugins/DrugMeUp.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/giinger/dmu/Drugs : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:52) at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.UnsupportedClassVersionError: me/giinger/dmu/Drugs : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more
I use CB 1.4.7-R0.1
-
View User Profile
-
Send Message
Posted Jan 25, 2013@Giinger
Ah, gotcha! Thanks for the help man.
-
View User Profile
-
Send Message
Posted Jan 25, 2013@BROLYMAXIMUM
Thanks for the report, I just looked into it and I see what the problem is. Fixing it for the next version, should have a patch out by tomorrow.
Also, here's a pastebin of how your config should look:
http://pastebin.com/Fk57g6uZ
Keep in mind, when you want to use an apostrophe, you have to put 2 of them. Also make sure that you're surrounding your strings in apostrophe's and not quotation marks.
I'm also going to look into why milk has infinite usage.
-
View User Profile
-
Send Message
Posted Jan 25, 2013So, I've noticed sometimes my drugs will do the appropriate listed effects, and sometimes they'll either do ALL the effects or ones that aren't listed under "effects". 'TYPE: ALL' means it will give ALL the effects listed under 'Effects', right? I get no errors or anything.
Here is my config http://pastebin.com/9qPtjDFS
for example, for the "Black Ale" it should only give nausea, but it gives basically every effect.
EDIT: Seems like it may be that if you take one drug WITH another, it will mix the effects up and resort to normal until a restart.
-
View User Profile
-
Send Message
Posted Jan 24, 2013I Wish There Would Be Version 1.2.5 DrugMeUp But With 1.4.7 Features, I Want 1.2.5 For Tekkit :(
-
View User Profile
-
Send Message
Posted Jan 23, 2013im guessing i need to update cause now none of my drugs work
-
View User Profile
-
Send Message
Posted Jan 23, 2013will i have to update my server to 1.4.7 to use the new update? cause i already had to downgrade it to 1.4.6 to use the one before
-
View User Profile
-
Send Message
Posted Jan 23, 2013@BROLYMAXIMUM
Forgot to list that in the coming soon section. Thanks for reminding me.
-
View User Profile
-
Send Message
Posted Jan 23, 2013Awesome plugin, man! I was just wondering if there is/will be any way to configure the length of the effects for the drugs?
-
View User Profile
-
Send Message
Posted Jan 23, 2013LOL funny plugin haha
-
View User Profile
-
Send Message
Posted Jan 23, 2013@NYHCRJ515
It is updated, but not approved yet. It will alert you in game and via console when the update is available.
-
View User Profile
-
Send Message
Posted Jan 22, 2013So is the plugin updated already? Cause i still cannot use any of the drugs.
-
View User Profile
-
Send Message
Posted Jan 22, 2013@iminecraft253
Make sure you've saved your config.yml and type in "/drugmeup reload" or restart your server.
-
View User Profile
-
Send Message
Posted Jan 22, 2013no the only ones that work are sugar, green cactus dye and red mushrooms the other ones never work
-
View User Profile
-
Send Message
Posted Jan 22, 2013@iminecraft253
Hmm.. the config seems to be fine, do they work sometimes but other times not?
-
View User Profile
-
Send Message
Posted Jan 22, 2013heres my config
http://pastie.org/private/rioupo0ipahg3nzlsya4a