CraftBook 3

CraftBook 3

139k Downloads

Could not pass event BlockPlaceEvent

LadyCailinBot opened this issue ยท 2 comments

commented

CRAFTBOOK-3369 - Reported by sat

on place accacia button, i give this in log :
(all new button give this on placement in all place)

[11:37:55] [Server thread/ERROR]: Could not pass event BlockPlaceEvent to CraftBook v3.9-SNAPSHOT;4447-51f0e7a
org.bukkit.event.EventException: null
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:308) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:154) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.ItemStack.placeItem(ItemStack.java:204) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PlayerInteractManager.a(PlayerInteractManager.java:500) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1242) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.a(SourceFile:10) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
	at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:900) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Caused by: java.lang.ClassCastException: org.bukkit.material.MaterialData cannot be cast to org.bukkit.material.Button
	at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.checkBlockChange(MechanicListenerAdapter.java:161) ~[?:?]
	at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.onBlockPlace(MechanicListenerAdapter.java:125) ~[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	... 18 more

on craftbook 3.9 snap 4447
on paper or spigot (last build this day f6a273b-1cf8b5d MC:1.3.1)

commented

Comment by sat

All button not aliment jack o lantern and netherrack mecanics.
but stone buton and oak_button does.
-------edit-----

given the concern of placement I did not use the new buttons.
but it is not just the placement, there is also flood in the logs to use.

on use (push on jungle button)

[11:28:23] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to CraftBook v3.9-SNAPSHOT;4447-51f0e7a
org.bukkit.event.EventException: null
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:308) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:239) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PlayerInteractManager.a(PlayerInteractManager.java:452) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1242) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.a(SourceFile:10) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
	at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:900) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Caused by: java.lang.ClassCastException: org.bukkit.material.MaterialData cannot be cast to org.bukkit.material.Button
	at com.sk89q.craftbook.mechanics.Teleporter.onCommonClick(Teleporter.java:100) ~[?:?]
	at com.sk89q.craftbook.mechanics.Teleporter.onRightClick(Teleporter.java:71) ~[?:?]
	at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	... 17 more
[11:28:23] [Server thread/ERROR]: Could not pass event BlockRedstoneEvent to CraftBook v3.9-SNAPSHOT;4447-51f0e7a
org.bukkit.event.EventException: null
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:308) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.BlockButtonAbstract.interact(BlockButtonAbstract.java:92) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.IBlockData.interact(SourceFile:281) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PlayerInteractManager.a(PlayerInteractManager.java:492) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1242) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.a(SourceFile:10) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
	at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:900) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Caused by: java.lang.ClassCastException
[11:28:25] [Server thread/ERROR]: Could not pass event BlockRedstoneEvent to CraftBook v3.9-SNAPSHOT;4447-51f0e7a
org.bukkit.event.EventException: null
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:308) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.BlockButtonAbstract.b(BlockButtonAbstract.java:200) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.BlockButtonAbstract.a(BlockButtonAbstract.java:137) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.IBlockData.a(SourceFile:261) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.WorldServer.b(WorldServer.java:677) ~[spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.TickListServer.a(TickListServer.java:77) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.WorldServer.q(WorldServer.java:659) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.WorldServer.doTick(WorldServer.java:301) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:956) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot-1.13.1.jar:git-Spigot-f6a273b-1cf8b5d]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Caused by: java.lang.ClassCastException

it does not block the native system, but craftbook mechanics do not recognize buttons or their action.

commented

Comment by me4502

Try the newest build.