CraftBook 3

CraftBook 3

139k Downloads

Dropp player head no work and error

LadyCailinBot opened this issue ยท 3 comments

commented

CRAFTBOOK-2658 - Reported by sat

in config setting player must die
only in player death i have error. And no head dropp too

2013-07-25 14:49:31 [SEVERE] Could not pass event PlayerDeathEvent to CraftBook v2495-e8817b3
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.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:363)
at net.minecraft.server.v1_6_R2.EntityPlayer.die(EntityPlayer.java:308)
at net.minecraft.server.v1_6_R2.EntityLiving.damageEntity(EntityLiving.java:716)
at net.minecraft.server.v1_6_R2.EntityHuman.damageEntity(EntityHuman.java:715)
at net.minecraft.server.v1_6_R2.EntityPlayer.damageEntity(EntityPlayer.java:379)
at net.minecraft.server.v1_6_R2.EntityHuman.attack(EntityHuman.java:885)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:1148)
at net.minecraft.server.v1_6_R2.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:125)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:592)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at com.sk89q.craftbook.mech.HeadDrops.onEntityDeath(HeadDrops.java:43)
at sun.reflect.GeneratedMethodAccessor199.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 21 more

I use spigot #1041 et craftbook #2495-e8817b3
i use some plugins too...

commented

Comment by me4502

Fixed. For some reason bukkit made players entity type return nothing for the name instead of 'PLAYER'.

commented

Comment by sat

nice :)

it work fine :)

it test whith caftbook #2498-498e245 and spigot #1041.
Got no error and the head.

many thanks :)

commented

Comment by me4502

You're welcome :)