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
Hi, whenever I put a wither effect on my poppy, it puts an infinite instant health potion on too. I tried removing it but it keeps coming back. Any help?
Going to test with the latest version of Bukkit today, and probably clean up the code some.
@DannySan626
I will be, don't worry. Although the code I wrote for it is horrible, I'll still be trying to keep it in working condition
Please tell me you are gonna keep updating this plugin...
Will this plugin allow me to enchant even spider webs? Thank you.
@drkakaq
I had the same Console error spamming mine as well, it is caused by another plugin on your server, I now have an error that pops up when players use Item lore Stats weapons on any entity but normal weapons are fine.
@drkakaq
Sorry again, but I' ll need more than that to figure out the issue. It works more than fine for me.
@Felpalidan
It does not remove the potion effect when the inventory is closed. Here is the error that I get.
10:42:55 PM CONSOLE: Could not pass event InventoryCloseEvent to EnchantEffects v1.0 10:42:56 PM CONSOLE: Source) [?:?]
And it is repeatedly spammed throughout the console.
So sorry for the lack of communications, I've been busy with my position as a developer on a server. With your issue, it should be un-applied when the inventory is closed, due to technical limitations. Is this not the case? Also, if you can, if there are any errors in the console, would you share them?
@ProjectMine
I've been waiting for some sort of response to this for awhile. So far nothing. Great concept if it gets working properly, but so far not too much. I know its still in beta and I understand that, but some sort of update would be appreciated.
@drkakaq the same problem, just the same.
Yay now the potion effect is applied when you are wearing the armor, but it doesn't get removed when it is unequipped.
@skrompf
Fixed it, uploading now, should be approved in a few days at most.
@skrompf
Thanks for letting me know, and giving the stack trace. Looking into it now.
I get this error when i have a diamond helmet equipped with an effect (does the same with all armors) The effect is not applyed. Sry for wall of text, spoiler dosen't seem to work [15:17:59 ERROR]: Could not pass event InventoryCloseEvent to EnchantEffects v1. 0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:320) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:481) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:466) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.handleInventor yCloseEvent(CraftEventFactory.java:701) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-1 7-g7d185fd-b2997jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java :1144) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at net.minecraft.server.v1_7_R1.PacketPlayInCloseWindow.a(PacketPlayInCl oseWindow.java:15) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at net.minecraft.server.v1_7_R1.PacketPlayInCloseWindow.handle(PacketPla yInCloseWindow.java:27) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997 jnks] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146 ) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craf tbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:6 55) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2 50) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5 45) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java :457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6 17) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] Caused by: java.lang.NullPointerException at com.gmail.mcintire.PlayerListener.parseString(PlayerListener.java:184 ) [?:?] at com.gmail.mcintire.PlayerListener.onInvClose(PlayerListener.java:72) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0 _10] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0 _10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1 .7.0_10] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.7.0_10] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:318) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-17-g7d185fd-b2997jnks] ... 14 more >>>
@Felpalidan
It only seems to apply the potion effects to other players when you hit them with it.
@drkakaq
What version of the game are you running?
What other plugins are you running?
I honestly dont know what the issue could be, it works perfectly on my dev server.
@Felpalidan No. The enchantments are not being equipped when your inventory is closed.
@drkakaq
I honestly have no idea what could be causing that.
@drkakaq
Due to the nature of Bukkit, I cant apply them when you equip it, but rather when the inventory is closed. So are they being applied when you close the inventory?
Potion effects are not being applied when armor is equipped.