-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
This server is running CraftBukkit version git-Spigot-e4be9b0-5736cdc (MC: 1.14) (Implementing API version 1.14-R0.1-SNAPSHOT)
-
ClassCastException
-
Yes
Reproduce: Install the provided plugin, login to the server, obtain a lingering potion, throw said lingering potion at the ground, observe the exception
More Details here
[21:52:15] [Server thread/ERROR]: Could not pass event LingeringPotionSplashEvent to TestPlugin v1.0 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:508) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:493) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at org.bukkit.craftbukkit.v1_14_R1.event.CraftEventFactory.callLingeringPotionSplashEvent(CraftEventFactory.java:624) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.EntityPotion.a(EntityPotion.java:215) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.EntityPotion.a(EntityPotion.java:90) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.EntityProjectile.tick(EntityProjectile.java:109) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.WorldServer.entityJoinedWorld(WorldServer.java:578) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.World.a(World.java:743) [spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.WorldServer.doTick(WorldServer.java:355) [spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1054) [spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:396) [spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:953) [spigot.jar:git-Spigot-e4be9b0-5736cdc] at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:798) [spigot.jar:git-Spigot-e4be9b0-5736cdc] at java.lang.Thread.run(Unknown Source) [?:1.8.0_202] Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_14_R1.entity.CraftThrownPotion cannot be cast to org.bukkit.entity.LingeringPotion at org.bukkit.event.entity.LingeringPotionSplashEvent.getEntity(LingeringPotionSplashEvent.java:26) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] at me.taucu.testplugin.Main.splash(Main.java:23) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_202] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_202] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:311) ~[spigot.jar:git-Spigot-e4be9b0-5736cdc] ... 15 more