CraftBook 3

CraftBook 3

139k Downloads

HangingBreakByEntityEvent and leads | hanged kill by mobs

LadyCailinBot opened this issue ยท 3 comments

commented

CRAFTBOOK-2773 - Reported by sat

hello,

i have this error in my log today :

2013-11-04 22:52:04 [SEVERE] Could not pass event HangingBreakByEntityEvent to CraftBook v3.7-SNAPSHOT:3305-150da90,master
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at net.minecraft.server.v1_6_R3.EntityHanging.damageEntity(EntityHanging.java:229)
at net.minecraft.server.v1_6_R3.EntityHanging.i(EntityHanging.java:207)
at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:859)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1158)
at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R3.entity.CraftLeash cannot be cast to org.bukkit.entity.Tameable
at com.sk89q.craftbook.mech.BetterLeads.onHitchBreak(BetterLeads.java:153)
at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 18 more
2013-11-04 22:52:06 [INFO] [ Resident ] cyril_o_cube : :o un fantome
2013-11-04 22:52:07 [SEVERE] Could not pass event HangingBreakByEntityEvent to CraftBook v3.7-SNAPSHOT:3305-150da90,master
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at net.minecraft.server.v1_6_R3.EntityHanging.damageEntity(EntityHanging.java:229)
at net.minecraft.server.v1_6_R3.EntityHanging.i(EntityHanging.java:207)
at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:859)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1158)
at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R3.entity.CraftLeash cannot be cast to org.bukkit.entity.Tameable
at com.sk89q.craftbook.mech.BetterLeads.onHitchBreak(BetterLeads.java:153)
at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 18 more
2013-11-04 22:52:08 [SEVERE] Could not pass event HangingBreakByEntityEvent to CraftBook v3.7-SNAPSHOT:3305-150da90,master
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at net.minecraft.server.v1_6_R3.EntityHanging.damageEntity(EntityHanging.java:229)
at net.minecraft.server.v1_6_R3.EntityHanging.i(EntityHanging.java:207)
at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:859)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1158)
at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R3.entity.CraftLeash cannot be cast to org.bukkit.entity.Tameable
at com.sk89q.craftbook.mech.BetterLeads.onHitchBreak(BetterLeads.java:153)
at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 18 more
2013-11-04 22:52:08 [SEVERE] Could not pass event HangingBreakByEntityEvent to CraftBook v3.7-SNAPSHOT:3305-150da90,master
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at net.minecraft.server.v1_6_R3.EntityHanging.damageEntity(EntityHanging.java:229)
at net.minecraft.server.v1_6_R3.EntityHanging.i(EntityHanging.java:207)
at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:859)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1158)
at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R3.entity.CraftLeash cannot be cast to org.bukkit.entity.Tameable
at com.sk89q.craftbook.mech.BetterLeads.onHitchBreak(BetterLeads.java:153)
at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 18 more
2013-11-04 22:52:08 [SEVERE] Could not pass event HangingBreakByEntityEvent to CraftBook v3.7-SNAPSHOT:3305-150da90,master
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at net.minecraft.server.v1_6_R3.EntityHanging.damageEntity(EntityHanging.java:229)
at net.minecraft.server.v1_6_R3.EntityHanging.i(EntityHanging.java:207)
at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:859)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1158)
at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R3.entity.CraftLeash cannot be cast to org.bukkit.entity.Tameable
at com.sk89q.craftbook.mech.BetterLeads.onHitchBreak(BetterLeads.java:153)
at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 18 more
2013-11-04 22:52:08 [SEVERE] Could not pass event HangingBreakByEntityEvent to CraftBook v3.7-SNAPSHOT:3305-150da90,master
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at net.minecraft.server.v1_6_R3.EntityHanging.damageEntity(EntityHanging.java:229)
at net.minecraft.server.v1_6_R3.EntityHanging.i(EntityHanging.java:207)
at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:859)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1158)
at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R3.entity.CraftLeash cannot be cast to org.bukkit.entity.Tameable
at com.sk89q.craftbook.mech.BetterLeads.onHitchBreak(BetterLeads.java:153)
at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 18 more
2013-11-04 22:52:08 [SEVERE] Could not pass event HangingBreakByEntityEvent to CraftBook v3.7-SNAPSHOT:3305-150da90,master
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at net.minecraft.server.v1_6_R3.EntityHanging.damageEntity(EntityHanging.java:229)
at net.minecraft.server.v1_6_R3.EntityHanging.i(EntityHanging.java:207)
at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:859)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1158)
at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R3.entity.CraftLeash cannot be cast to org.bukkit.entity.Tameable
at com.sk89q.craftbook.mech.BetterLeads.onHitchBreak(BetterLeads.java:153)
at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 18 more
2013-11-04 22:52:10 [INFO] yo_minecraft issued server command: /back
2013-11-04 22:52:10 [SEVERE] Could not pass event HangingBreakByEntityEvent to CraftBook v3.7-SNAPSHOT:3305-150da90,master
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at net.minecraft.server.v1_6_R3.EntityHanging.damageEntity(EntityHanging.java:229)
at net.minecraft.server.v1_6_R3.EntityHanging.i(EntityHanging.java:207)
at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:859)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1158)
at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R3.entity.CraftLeash cannot be cast to org.bukkit.entity.Tameable
at com.sk89q.craftbook.mech.BetterLeads.onHitchBreak(BetterLeads.java:153)
at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 18 more

I think it's on entity break or cause death of entity attached on leads
I have tested and other player can detach mob attach, but on config i set it to none
I did not have this error before enabling leads.

I use spigot #1135

my conf fot leads :
better-leads:
enable: true
stop-mob-target: true
allowed-mobs:
- ZOMBIE
- SPIDER
- VILLAGER
owner-unleash-only: true
hitch-persists: false
mob-repel: false

on this day, i test "owner-unleash-only: false" i think it's a zombie or a skeletton at the source of the error.

sorry for my traduction, tanks for your work.

commented

Comment by me4502

This should be fixed in the latest dev build.

commented

Comment by sat

whith the latest dev build i dont have error.
for me it seems fixed.

thanks

commented

Comment by me4502

Oh good, you're welcome