• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

Bug Report EntityDamage Bug

  • Thread starter Deleted member 15028
  • Start date
D

Deleted member 15028

15.03 18:53:33 [Server] ERROR Could not pass event EntityDamageByBlockEvent to ProjectKorra v1.8.6 15.03 18:53:33 [Server] INFO org.bukkit.event.EventException: null 15.03 18:53:33 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:92) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:490) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.handleNonLivingEntityDamageEvent(CraftEventFactory.java:630) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.handleNonLivingEntityDamageEvent(CraftEventFactory.java:616) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.EntityItem.damageEntity(EntityItem.java:256) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.Entity.burnFromLava(Entity.java:470) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.Entity.Y(Entity.java:441) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.Entity.B_(Entity.java:314) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.EntityItem.B_(EntityItem.java:61) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.World.entityJoinedWorld(World.java:1643) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.World.h(World.java:1613) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.World.tickEntities(World.java:1437) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.WorldServer.tickEntities(WorldServer.java:665) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:817) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161] 15.03 18:53:33 [Server] INFO Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_12_R1.entity.CraftItem cannot be cast to org.bukkit.entity.LivingEntity 15.03 18:53:33 [Server] INFO at com.projectkorra.projectkorra.PKListener.onEntityDamageEvent(PKListener.java:473) ~[?:?] 15.03 18:53:33 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161] 15.03 18:53:33 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161] 15.03 18:53:33 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161] 15.03 18:53:33 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]

I use PK 1.8.6 on spigot 1.12.1
 
Last edited by a moderator:

Sobki

Staff member
Lead Developer
Plugin Developer
Verified Member
This bug has already been fixed and a patch will be made available in 1.8.7.
Also for future reference, when posting bug reports it helps to put the stack trace in a code block like so to make it easier to read.
Code:
code
Thank you for reporting this issue. :)
 
D

Deleted member 15028

This bug has already been fixed and a patch will be made available in 1.8.7.
Also for future reference, when posting bug reports it helps to put the stack trace in a code block like so to make it easier to read.
Code:
code
Thank you for reporting this issue. :)
No problem but if i used a code it would look like this
Code:
15.03 18:53:33 [Server] ERROR Could not pass event EntityDamageByBlockEvent to ProjectKorra v1.8.6 15.03 18:53:33 [Server] INFO org.bukkit.event.EventException: null 15.03 18:53:33 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:92) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:490) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.handleNonLivingEntityDamageEvent(CraftEventFactory.java:630) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.handleNonLivingEntityDamageEvent(CraftEventFactory.java:616) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.EntityItem.damageEntity(EntityItem.java:256) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.Entity.burnFromLava(Entity.java:470) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.Entity.Y(Entity.java:441) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.Entity.B_(Entity.java:314) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.EntityItem.B_(EntityItem.java:61) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.World.entityJoinedWorld(World.java:1643) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.World.h(World.java:1613) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.World.tickEntities(World.java:1437) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.WorldServer.tickEntities(WorldServer.java:665) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:817) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [SP:git-Spigot-da42974-8f47214] 15.03 18:53:33 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161] 15.03 18:53:33 [Server] INFO Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_12_R1.entity.CraftItem cannot be cast to org.bukkit.entity.LivingEntity 15.03 18:53:33 [Server] INFO at com.projectkorra.projectkorra.PKListener.onEntityDamageEvent(PKListener.java:473) ~[?:?] 15.03 18:53:33 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161] 15.03 18:53:33 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161] 15.03 18:53:33 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161] 15.03 18:53:33 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
 

xNuminousx

Verified Member
If you copy it directly from the console it shouldn't. The way you pasted it above appears to have removed all of the indents and such, making it confusing to read.
 
Top