Enchant Effects
EnchantEffects
Intro
This plugin adds "enchanting" items with potion effects, which are applied differently based on the kind of item
- Equipable items apply the effect while they are equipped
- Weapon/Unusable items apply the effect to any living entity that is hit with them
- Food items apply the effect when consumed
Commands
/enchanteffect is the parent command. Using it will list all sub commands.
/enchanteffect setname will set an items name if the player has the permission, and subtract the amount of levels specified in the config.
/enchanteffect enchant <enchant or enchantID> <level> Adds an enchant with the specified level to the item being held, and subtracts the amount of levels specified in the config.
/enchanteffect effect <effect> <level> <time> Adds a potion effect "enchant" to the item in your hand, and subtracts the amount of levels specified in the config
Permissions
(parents only, will add children later)
enchanteffects.setname
Allows Item Name Setting
enchanteffects.enchant
Allows use of /enchanteffect enchant
enchanteffects.effect
Allows use of /enchanteffect effect
Config
http://dev.bukkit.org/bukkit-plugins/enchant-effects/pages/config-yml/ See here for the whole config file, should explain itself
Before anything else , I want to say that I really enjoyed the plugin and that's what I look for and I need a lot of potions effects on equipment , so it has a bug , NightVision example I put in a diamond helmet after he rigged and activated NightVision , so that when we remove the nightvision effect helmet is still there , I wanted when I remove the helmet the effect also would leave and only return when I put the helmet right back. :D
sorry for my English is not that I am Brazilian and I speak very well English
I'm really sorry about the issues.
Due to the fact that bukkit is essentially dead, and due to the fact that I no longer have the (poorly written) code for this, I will not be fixing the issue. I will however, be rewriting this for the Sponge API
@Felpalidan
Can you please fix the insta health?
@Felpalidan
Do u have a fix to the InstaHealth?
@dvargas135
@vPixelZ
Same Anyone got a fix on That??
@vPixelZ
Me too, got any fix?
My players are getting Instant Health when installing this plugin.
how do u get rid of the attribute
@Magician43
That's a thing with minecraft, I can't do anything about that
@Magician43
Nope, sorry, there's no way around it.
Anyway, I'm trying to find a fix to the effects staying on, because I swear I fixed it 8 months ago, but I guess not.
One more thing can you make it so the effect isnt visible when you hover over the item?
@Felpalidan
First of all i have the same issue as Darth_Malgus123 second of all how do you make the efect permanent when i write /enchanteffect effect nightvision 1 1 it gives me nightvision but for 1 second an the sky is flashing because i go in and out of the effect
@Darth_Malgus123
The same thing is happening to me :(
@Felpalidan
This is what i saw for me to do. http://i.imgur.com/GSP1j7f.png This is what i did http://i.imgur.com/31y3M6n.png And this what i got http://i.imgur.com/D6qT8ow.png
@bobweaty
It looks like you're running an older version of Bukkit or something, it loads up fine for me, and it's what the stack trace says
@Darth_Malgus123
I fixed it to not do that a long time ago, and Im having trouble finding anything wrong with the code, and with replicating it. The only thing I can really think of would be something going wrong while adding the effect to the item. Could you send a screenshot of the item, or something? Thanks.
Hey, When i put my armor with effects on it works and when i take my armor off the effects are still there. Can you please make effects go off when i take my armor off.
@Felpalidan I didn't have the levels set for the enchantments and effects
Whenever I put the plugin into my plugins folder then start up the server everything loads fine but this plugin, I even tried to get rid of all my plugins and only use this one and even then this one didnt work, this is the error i get, Could not load 'plugins/EnchantEffects.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/gmail/mcintire/EnchantEffect : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:137) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:308) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:257) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:630) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.Bukkit.reload(Bukkit.java:279) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:198) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:544) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:531) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] Caused by: java.lang.UnsupportedClassVersionError: com/gmail/mcintire/EnchantEffect : 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.findClass(PluginClassLoader.java:77) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] 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.PluginClassLoader.<init>(PluginClassLoader.java:40) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-7-g169af45-b2985jnks]
@corbanj6534
Argh, I thought I fixed that bug long ago. Is there any way you could check for any errors in the console?
Also, for the Instant Health thing, how did you get that fixed?
@JETTOLIVER
I can't really help you there, if there were any error messages in the console I could help
@mitchdude1231
Did you ever fix this? If not, could you try and replicate it and provide any relevant console output?
Whenever i put an effect on armour it just puts Instant Helth on rather than the effect i said.
edit: i fixed this issue, now when i take the armour off, i keep the effect.
Please help! i really want to use this plugin for my server but when ever i download it and put it in my Plugin folder, do my reload the plugin is never their