botskonet/dhmcDeath — Issue #2: Cannot measure distance
Author: liquidox
Created: 2012-02-25 14:58:15+00:00
State: open

Version:
2012-02-25 10:54:11 [INFO] [dhmcDeath] Loading dhmcDeath v0.1.5.
2012-02-25 10:54:11 [INFO] [dhmcDeath]: [dhmcDeath]: Initializing.

Error:
15:57:04 [SEVERE] Could not pass event org.bukkit.event.entity.PlayerDeathEvent to dhmcDeath
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:367)
at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:171)
at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:546)
at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:612)
at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:213)
at org.bukkit.craftbukkit.entity.CraftLivingEntity.damage(CraftLivingEntity.java:175)
at com.nisovin.muddersmilk.MilkPlayerListener.onPlayerInteract(MilkPlayerListener.java:52)
at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:283)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:609)
at net.minecraft.server.Packet15Place.handle(SourceFile:39)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
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.GeneratedMethodAccessor255.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$103.execute(JavaPluginLoader.java:1024)
... 24 more
Caused by: java.lang.IllegalArgumentException: Cannot measure distance between world_jma and world
at org.bukkit.Location.distanceSquared(Location.java:380)
at org.bukkit.Location.distance(Location.java:363)
at me.botsko.dhmcdeath.dhmcdeath.onEntityDeath(dhmcdeath.java:362)
... 28 more