Better lead/leash does not work
LadyCailinBot opened this issue ยท 11 comments
CRAFTBOOK-2704 - Reported by Felina_Lain
My craftbook config for this:
better-leads:
enable: true
stop-mob-target: false
allowed-mobs:
- ZOMBIE
- SPIDER
- ENDERMAN
- CAVESPIDER
- VILLAGER
- CREEPER
My log when i try to click a mob of the list (spider for exemple) with a lead:
2013-08-27 14:47:24 [INFO] Felina_Lain issued server command: /give Felina_Lain 383 1 52
2013-08-27 14:47:28 [INFO] Felina_Lain issued server command: /give Felina_Lain 420 1 0
2013-08-27 14:47:31 [SEVERE] Could not pass event PlayerInteractEntityEvent to CraftBook v3.7-SNAPSHOT:3173-e2e7862,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.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:1087)
at net.minecraft.server.v1_6_R2.Packet7UseEntity.handle(SourceFile:36)
at net.minecraft.server.v1_6_R2.Packet7UseEntity$$EnhancerByCGLIB$$55151bfd.CGLIB$handle$0()
at net.minecraft.server.v1_6_R2.Packet7UseEntity$$EnhancerByCGLIB$$55151bfd$$FastClassByCGLIB$$94264b04.invoke()
at com.comphenix.net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.comphenix.protocol.injector.packet.ReadPacketModifier.intercept(ReadPacketModifier.java:116)
at net.minecraft.server.v1_6_R2.Packet7UseEntity$$EnhancerByCGLIB$$55151bfd.handle()
at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.LivingEntity.setLeashHolder(Lorg/bukkit/entity/Entity;)Z
at com.sk89q.craftbook.mech.BetterLeads.onPlayerClick(BetterLeads.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 19 more
Comment by Felina_Lain
Copying from server log:
2013-08-28 20:23:15 [INFO] Felina_Lain[/82.226.166.142:1691] logged in with entity id 342 at ([Five Islands] -244.26374256299582, 64.0, 242.6540403839489)
2013-08-28 20:23:18 [SEVERE] Could not pass event PlayerInteractEntityEvent to CraftBook v3.7-SNAPSHOT:3173-e2e7862,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.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:1080)
at net.minecraft.server.v1_6_R2.Packet7UseEntity.handle(SourceFile:36)
at net.minecraft.server.v1_6_R2.Packet7UseEntity$$EnhancerByCGLIB$$896f9e98.CGLIB$handle$0()
at net.minecraft.server.v1_6_R2.Packet7UseEntity$$EnhancerByCGLIB$$896f9e98$$FastClassByCGLIB$$aaa1220d.invoke()
at com.comphenix.net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at com.comphenix.protocol.injector.packet.ReadPacketModifier.intercept(ReadPacketModifier.java:116)
at net.minecraft.server.v1_6_R2.Packet7UseEntity$$EnhancerByCGLIB$$896f9e98.handle()
at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at com.sk89q.craftbook.mech.BetterLeads.onPlayerClick(BetterLeads.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 19 more
Comment by me4502
Please use the latest version of craftbook and resubmit the error, you are using an older version.
Comment by Felina_Lain
But I download the one that was set in the list as latest built O.O
I went here: http://dl.bukkit.org/downloads/craftbukkit/list/dev/?page=1 to download the very top one....
Comment by Felina_Lain
Dang, I'm so sorry for being so stupid! And for making you lose your time too! Now it work just fine.. what an idiot I am! Really sorry again!
Can I ask one last question, just curious, and you can ignore it if it annoy you: why does the craftbook with working leash got buggy chairs and opposite? Is the code for those two things somehow crashing? and if yeah, when do you think you'll post a version with both working?
Comment by me4502
The issue with chairs is there is a bug in bukkit that disallows dismounting from an entity that is not a minecart, boat or horse. Due to this chairs can't be dismounted without the server kicking the player. The bug was introduced in bukkit build #2813, which was before the ability to modify leads was added to bukkit. Due to this, it isn't possible to have both BetterLeads and Chairs working at the same time at the moment, until the chair issue is fixed inside of bukkit.
Comment by Felina_Lain
i tried to do as you said, going here: http://dl.bukkit.org/downloads/craftbukkit/list/dev/?page=1
to download the latest bukkit, but it still doesn't work, and now worse the chair mechanism is broken too...
Comment by me4502
You need to use build #2812 to use chairs. You must choose between chairs or betterleads.
If you choose betterleads, please type /cb report ingame, and pastebin the file created.
Also, do any errors occur when you use BetterLeads? It works absolutely fine for me.
Comment by Felina_Lain
Well I returned to the #2812 built, since I can't get the leashes to work, but while I used the latest built I still had the error messages. In-game I could see the leash appear for half a second before it disappeared again and the mob was still free...
I also did that report you asked, hoping it'll help you solve the problem...