CitizensDev/Citizens — Issue #729: Error code on damage
Author: SupaYoshi
Created: 2012-01-31 18:42:00+00:00
State: open

19:35:39 [SEVERE] Could not pass event org.bukkit.event.entity.EntityDamageEvent to Citizens
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
at com.earth2me.essentials.commands.Commandsuicide.run(Commandsuicide.java:20)
at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:97)
at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:340)
at com.earth2me.essentials.Essentials.onCommand(Essentials.java:267)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:386)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:777)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:737)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:725)
at lishid.orebfuscator.hook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:101)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
at lishid.orebfuscator.hook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:44)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
... 21 more
Caused by: java.lang.ClassCastException: com.earth2me.essentials.User cannot be cast to org.bukkit.craftbukkit.entity.CraftEntity
at net.citizensnpcs.resources.npclib.NPCList.getNPC(NPCList.java:19)
at net.citizensnpcs.resources.npclib.NPCManager.get(NPCManager.java:31)
at net.citizensnpcs.listeners.EntityListen.onEntityDamage(EntityListen.java:29)
... 25 more