EchoPet

EchoPet

882k Downloads

Errors after die, and bug when pet respawn

TmInT opened this issue ยท 3 comments

commented
[18:56:49] [Server thread/ERROR]: Could not pass event PlayerRespawnEvent to EchoPet v2.3.3-b408
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) ~[craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.PlayerList.moveToWorld(PlayerList.java:473) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.PlayerList.moveToWorld(PlayerList.java:412) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:1138) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.PacketPlayInClientCommand.a(SourceFile:50) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.PacketPlayInClientCommand.handle(SourceFile:8) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:147) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.ServerConnection.c(SourceFile:134) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:657) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:250) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:548) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:459) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at com.dsh105.echopet.compat.api.util.reflection.SafeConstructor.newInstance(SafeConstructor.java:65) ~[?:?]
    at com.dsh105.echopet.compat.api.entity.PetType.getNewPetInstance(PetType.java:140) ~[?:?]
    at com.dsh105.echopet.api.PetManager.createPet(PetManager.java:124) ~[?:?]
    at com.dsh105.echopet.api.PetManager.createPetFromFile(PetManager.java:229) ~[?:?]
    at com.dsh105.echopet.api.PetManager.loadPets(PetManager.java:77) ~[?:?]
    at com.dsh105.echopet.listeners.PetOwnerListener.onPlayerRespawn(PetOwnerListener.java:208) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_55]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_55]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_55]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    ... 15 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_55]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_55]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_55]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_55]
    at com.dsh105.echopet.compat.api.util.reflection.SafeConstructor.newInstance(SafeConstructor.java:57) ~[?:?]
    at com.dsh105.echopet.compat.api.entity.PetType.getNewPetInstance(PetType.java:140) ~[?:?]
    at com.dsh105.echopet.api.PetManager.createPet(PetManager.java:124) ~[?:?]
    at com.dsh105.echopet.api.PetManager.createPetFromFile(PetManager.java:229) ~[?:?]
    at com.dsh105.echopet.api.PetManager.loadPets(PetManager.java:77) ~[?:?]
    at com.dsh105.echopet.listeners.PetOwnerListener.onPlayerRespawn(PetOwnerListener.java:208) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_55]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_55]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_55]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    ... 15 more
Caused by: java.lang.NullPointerException
    at java.lang.String.replace(String.java:2180) ~[?:1.7.0_55]
    at com.dsh105.echopet.compat.api.entity.PetType.getDefaultName(PetType.java:111) ~[?:?]
    at com.dsh105.echopet.api.pet.Pet.<init>(Pet.java:60) ~[?:?]
    at com.dsh105.echopet.api.pet.type.IronGolemPet.<init>(IronGolemPet.java:33) ~[?:?]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_55]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_55]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_55]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_55]
    at com.dsh105.echopet.compat.api.util.reflection.SafeConstructor.newInstance(SafeConstructor.java:57) ~[?:?]
    at com.dsh105.echopet.compat.api.entity.PetType.getNewPetInstance(PetType.java:140) ~[?:?]
    at com.dsh105.echopet.api.PetManager.createPet(PetManager.java:124) ~[?:?]
    at com.dsh105.echopet.api.PetManager.createPetFromFile(PetManager.java:229) ~[?:?]
    at com.dsh105.echopet.api.PetManager.loadPets(PetManager.java:77) ~[?:?]
    at com.dsh105.echopet.listeners.PetOwnerListener.onPlayerRespawn(PetOwnerListener.java:208) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_55]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_55]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_55]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[craftbukkit-1.7.5-R0.1.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    ... 15 more
commented

This should now be fixed, as is #285

commented
[ryantheleach] Have you removed the default name of the pet?
[ryantheleach] as a work around, try setting it to an empty string?
[TmInT] I'm rename pet at Ru name
[ryantheleach] Ok, it may be a unicode issue.
commented

I've been having the same issue. When a player dies while they have a pet summoned, the plugin summons a dummy version of their default pet. This dummy pet is not recognized by the plugin (i.e. trying to do "/pet remove" returns a "you do not have a pet" error), however it is invincible and continues to follow the player around until the player teleports to a different world or a /butcher command has been run.