CraftBook 3

CraftBook 3

139k Downloads

pass event playerinteractevent to mechanisms

LadyCailinBot opened this issue ยท 4 comments

commented

CRAFTBOOK-2249 - Reported by Martin.Faester

09:52:41 [SEVERE] Could not pass event PlayerInteractEvent to CraftBookMechanisms v1232-3ea7dd5
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:371)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
at net.minecraft.server.Packet15Place.handle(SourceFile:58)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:112)
at net.minecraft.server.ServerConnection.b(SourceFile:39)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
Caused by: java.lang.NullPointerException
at org.bukkit.craftbukkit.block.CraftBlock.getRelative(CraftBlock.java:153)
at org.bukkit.craftbukkit.block.CraftBlock.getRelative(CraftBlock.java:149)
at com.sk89q.craftbook.mech.Elevator.isLift(Elevator.java:285)
at com.sk89q.craftbook.mech.Elevator.access$000(Elevator.java:52)
at com.sk89q.craftbook.mech.Elevator$Factory.detect(Elevator.java:80)
at com.sk89q.craftbook.mech.Elevator$Factory.detect(Elevator.java:54)
at com.sk89q.craftbook.MechanicManager.detect(MechanicManager.java:470)
at com.sk89q.craftbook.MechanicManager.load(MechanicManager.java:330)
at com.sk89q.craftbook.MechanicManager.dispatchBlockRightClick(MechanicManager.java:236)
at com.sk89q.craftbook.bukkit.MechanicListenerAdapter$MechanicPlayerListener.onPlayerInteract(MechanicListenerAdapter.java:114)
at sun.reflect.GeneratedMethodAccessor119.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:339)
... 17 more

i have installed all jars from craftbook. Errors began showing up a few days afver 1.4.4 got in use.
mcraft.dk is using latest craftbook ver. 3.3.6 and
CraftBukkit version git-Bukkit-1.4.2-R0.2-10-gf47bc22-b2465jnks (MC: 1.4.4) (Implementing API version 1.4.4-R0.1-SNAPSHOT)

commented

Comment by Dark_Arc

Can you retry this with the latest build from http://build.sk89q.com/. The code lines have changed and I do not know if this issue is still valid in the latest builds.

commented

Comment by Martin.Faester

10:32:37 [INFO] [CraftBookMechanisms] Enabling CraftBookMechanisms v1274-e1eb77b
10:32:37 [INFO] CraftBookMechanisms: Default configuration file written: en_US.txt
10:32:37 [INFO] CraftBookMechanisms 1274-e1eb77b enabled.
10:32:37 [INFO] CraftBook: Enumerating chunks for INSTANCE-triggered components...
10:32:37 [INFO] CraftBook: 8524 chunk(s) for 13 world(s) processed (0s elapsed)

Thank you. Starting up fine. I will let you know how it goes.

commented

Comment by Martin.Faester

After the first posted error, it ran smoothly without issues for 12 hours more, before i changed to 1.4.4 your suggested link. It still performs fine. :) thanks again.

commented

Comment by Martin.Faester

Now i got errors again, with your suggestet 1.4.4:
14:49:53 [SEVERE] Could not pass event PlayerInteractEvent to CraftBookMechanisms v1274-e1eb77b
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:376)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:661)
at net.minecraft.server.Packet15Place.handle(SourceFile:58)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:113)
at net.minecraft.server.ServerConnection.b(SourceFile:39)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
Caused by: java.lang.NullPointerException
at org.bukkit.craftbukkit.block.CraftBlock.getRelative(CraftBlock.java:153)
at org.bukkit.craftbukkit.block.CraftBlock.getRelative(CraftBlock.java:149)
at com.sk89q.craftbook.mech.Elevator.isLift(Elevator.java:279)
at com.sk89q.craftbook.mech.Elevator.access$000(Elevator.java:49)
at com.sk89q.craftbook.mech.Elevator$Factory.detect(Elevator.java:77)
at com.sk89q.craftbook.mech.Elevator$Factory.detect(Elevator.java:51)
at com.sk89q.craftbook.MechanicManager.detect(MechanicManager.java:476)
at com.sk89q.craftbook.MechanicManager.load(MechanicManager.java:336)
at com.sk89q.craftbook.MechanicManager.dispatchBlockRightClick(MechanicManager.java:242)
at com.sk89q.craftbook.bukkit.MechanicListenerAdapter$MechanicPlayerListener.onPlayerInteract(MechanicListenerAdapter.java:109)
at sun.reflect.GeneratedMethodAccessor100.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:339)
... 17 more