Reinforcements creature_spawn event reason
LadyCailinBot opened this issue ยท 1 comments
CMDHELPER-2812 - Reported by PseudoKnight
It currently causes an exception in some circumstances when reinforcements are spawned.
{cut Show Exception Stacktrace}2013-10-27 11:17:32 [SEVERE] [CommandHelper][ERROR][RUNTIME] When trying to convert org.bukkit.event.entity.CreatureSpawnEvent$SpawnReason.REINFORCEMENTS to a com.laytonsmith.abstraction.enums.MCSpawnReason, no match was found. This may be caused by an old plugin version, or a newer server version. 2013-10-27 11:17:32 [SEVERE] Could not pass event CreatureSpawnEvent to CommandHelper v3.3.1-SNAPSHOT:2416-7897220,master 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_6_R3.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:239) at net.minecraft.server.v1_6_R3.World.addEntity(World.java:923) at net.minecraft.server.v1_6_R3.EntityZombie.damageEntity(EntityZombie.java:154) at net.minecraft.server.v1_6_R3.EntityHuman.attack(EntityHuman.java:884) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1121) at net.minecraft.server.v1_6_R3.Packet7UseEntity.handle(SourceFile:36) at net.minecraft.server.v1_6_R3.Packet7UseEntity$$EnhancerByCGLIB$$dd89e82b.CGLIB$handle$0(<generated>) at net.minecraft.server.v1_6_R3.Packet7UseEntity$$EnhancerByCGLIB$$dd89e82b$$FastClassByCGLIB$$3a47516.invoke(<generated>) at com.comphenix.net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at com.comphenix.protocol.injector.packet.ReadPacketModifier.intercept(ReadPacketModifier.java:128) at net.minecraft.server.v1_6_R3.Packet7UseEntity$$EnhancerByCGLIB$$dd89e82b.handle(<generated>) at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.IllegalArgumentException: No enum constant com.laytonsmith.abstraction.enums.MCSpawnReason.REINFORCEMENTS at java.lang.Enum.valueOf(Unknown Source) at com.laytonsmith.abstraction.enums.EnumConvertor.getAbstractedEnum(EnumConvertor.java:66) at com.laytonsmith.abstraction.bukkit.events.BukkitEntityEvents$BukkitMCCreatureSpawnEvent.getSpawnReason(BukkitEntityEvents.java:273) at com.laytonsmith.core.events.drivers.EntityEvents$creature_spawn.matches(EntityEvents.java:515) at com.laytonsmith.core.events.EventUtils.GetMatchingEvents(EventUtils.java:173) at com.laytonsmith.core.events.EventUtils.TriggerListener(EventUtils.java:193) at com.laytonsmith.abstraction.bukkit.events.drivers.BukkitEntityListener.onSpawn(BukkitEntityListener.java:37) at sun.reflect.GeneratedMethodAccessor81.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) ... 23 more
{cut}