nossr50/mcMMO — Issue #181: NPE while someone is trying something with Taming
Author: silentdojo
Created: 2011-12-15 03:33:54+00:00
State: open

03:24:43 [SEVERE] Could not pass event ENTITY_DAMAGE to mcMMO
java.lang.ClassCastException: org.bukkit.craftbukkit.CraftOfflinePlayer cannot be cast to org.bukkit.entity.Player
at com.gmail.nossr50.skills.Taming.getOwnerName(Taming.java:62)
at com.gmail.nossr50.Combat.combatChecks(Combat.java:148)
at com.gmail.nossr50.listeners.mcEntityListener.onEntityDamage(mcEntityListener.java:144)
at org.bukkit.plugin.java.JavaPluginLoader$64.execute(JavaPluginLoader.java:711)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.EntityHuman.f(EntityHuman.java:783)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:916)
at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)