ecoCreature

ecoCreature

81.5k Downloads

Bukkit 1.4.6 Dev Build - Head Drop Error

kbryant opened this issue ยท 2 comments

commented

Killing a player no longer drops skull items as configured. I get this error:

2012-12-20 19:36:24 [SEVERE] Could not pass event PlayerDeathEvent to ecoCreature v0.2.2-b250
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at org.bukkit.craftbukkit.v1_4_6.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:330)
    at net.minecraft.server.v1_4_6.EntityPlayer.die(EntityPlayer.java:254)
    at net.minecraft.server.v1_4_6.EntityLiving.damageEntity(EntityLiving.java:746)
    at net.minecraft.server.v1_4_6.EntityHuman.damageEntity(EntityHuman.java:614)
    at net.minecraft.server.v1_4_6.EntityPlayer.damageEntity(EntityPlayer.java:307)
    at net.minecraft.server.v1_4_6.EntityHuman.attack(EntityHuman.java:803)
    at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:1119)
    at net.minecraft.server.v1_4_6.Packet7UseEntity.handle(SourceFile:36)
    at net.minecraft.server.v1_4_6.Packet7UseEntity$$EnhancerByCGLIB$$2a8e6c32.CGLIB$handle$0(<generated>)
    at net.minecraft.server.v1_4_6.Packet7UseEntity$$EnhancerByCGLIB$$2a8e6c32$$FastClassByCGLIB$$9a9e19c5.invoke(<generated>)
    at com.comphenix.net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
    at com.comphenix.protocol.injector.ReadPacketModifier.intercept(ReadPacketModifier.java:109)
    at net.minecraft.server.v1_4_6.Packet7UseEntity$$EnhancerByCGLIB$$2a8e6c32.handle(<generated>)
    at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
    at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112)
    at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
    at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598)
    at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
    at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
    at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
    at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/inventory/CraftItemStack
    at se.crafted.chrisb.ecoCreature.commons.PlayerSkullUtil.createPlayerSkull(PlayerSkullUtil.java:35)
    at se.crafted.chrisb.ecoCreature.events.handlers.AbstractEventHandler.addPlayerSkullToEvent(AbstractEventHandler.java:81)
    at se.crafted.chrisb.ecoCreature.events.handlers.PlayerKilledEventHandler.getWinnerReward(PlayerKilledEventHandler.java:106)
    at se.crafted.chrisb.ecoCreature.events.handlers.PlayerKilledEventHandler.getRewardEvents(PlayerKilledEventHandler.java:73)
    at se.crafted.chrisb.ecoCreature.events.handlers.PlayerKilledEventHandler.createRewardEvents(PlayerKilledEventHandler.java:58)
    at se.crafted.chrisb.ecoCreature.events.handlers.PluginEventHandler.createRewardEvents(PluginEventHandler.java:53)
    at se.crafted.chrisb.ecoCreature.events.listeners.PlayerDeathEventListener.onEntityDeath(PlayerDeathEventListener.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.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:425)
    ... 25 more
commented

The latest dev build should address this issue.

commented

I just tested the latest dev, it doesn't throw the error anymore but heads also do not drop anymore.