Taiterio / ce

The Official Custom Enchantments Repository
GNU Lesser General Public License v3.0
18 stars 38 forks source link

Could not pass event EntityDamageByEntityEvent #32

Closed tteeee closed 8 years ago

tteeee commented 8 years ago

ench: Paralyze and Piercing mob from mythicmobs

> [22:04:08] [Server thread/ERROR]: Could not pass event EntityDamageByEntityEvent to CustomEnchantments v2.4b
> org.bukkit.event.EventException
>   at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[server.jar:git-Spigot-db6de12-18fbb24]
>   at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[server.jar:git-Spigot-db6de12-18fbb24]
>   at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [server.jar:git-Spigot-db6de12-18fbb24]
>   at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [server.jar:git-Spigot-db6de12-18fbb24]
>   at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callEvent(CraftEventFactory.java:87) [server.jar:git-Spigot-db6de12-18fbb24]
>   at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:553) [server.jar:git-Spigot-db6de12-18fbb24]
>   at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:466) [server.jar:git-Spigot-db6de12-18fbb24]
>   at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:585) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.EntityLiving.d(EntityLiving.java:1102) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.EntityHuman.d(EntityHuman.java:859) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.EntityLiving.damageEntity(EntityLiving.java:743) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.EntityHuman.damageEntity(EntityHuman.java:800) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.EntityPlayer.damageEntity(EntityPlayer.java:496) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.EntityArrow.t_(EntityArrow.java:242) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.World.entityJoinedWorld(World.java:1607) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.World.g(World.java:1582) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1425) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:597) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:786) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
>   at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
>   at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72-internal]
> Caused by: java.lang.NullPointerException
>   at com.taiter.ce.CEventHandler.handleBows(CEventHandler.java:245) ~[?:?]
>   at com.taiter.ce.CEListener.EntityDamageByEntityEvent(CEListener.java:421) ~[?:?]
>   at sun.reflect.GeneratedMethodAccessor1121.invoke(Unknown Source) ~[?:?]
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_72-internal]
>   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_72-internal]
>   at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[server.jar:git-Spigot-db6de12-18fbb24]
>   ... 22 more
Taiterio commented 8 years ago

Fixed in commit b4d7042405a3d72090545d542ec773723a3212d9.

If you still encounter errors, please reopen this