DiabloDrops

DiabloDrops

41.7k Downloads

Cool idea. Issues popped up.

burntime69 opened this issue ยท 3 comments

commented

These two continually spam my console and server.log file while the server is up and running. I absolutely luv the plugin idea and am hoping that you can get it running great.

2012-11-13 02:10:49 [SEVERE] Could not pass event CreatureSpawnEvent to DiabloDrops v0.3
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
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.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:226)
at net.minecraft.server.World.addEntity(World.java:872)
at net.minecraft.server.SpawnerCreature.spawnEntities(SpawnerCreature.java:158)
at net.minecraft.server.WorldServer.doTick(WorldServer.java:154)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:565)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:495)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:428)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
Caused by: java.lang.IllegalArgumentException: Enchantment level is either too low or too high (given 5, bounds are 1 to 4
at org.bukkit.inventory.ItemStack.addEnchantment(ItemStack.java:299)
at com.modcrafting.diablodrops.drops.DropsAPI.getItem(DropsAPI.java:74)
at com.modcrafting.diablodrops.drops.DropsAPI.getItem(DropsAPI.java:140)
at com.modcrafting.diablodrops.listeners.KillListener.onSpawn(KillListener.java:68)
at sun.reflect.GeneratedMethodAccessor63.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:339)
... 12 more

2012-11-13 02:11:22 [SEVERE] Could not pass event CreatureSpawnEvent to DiabloDrops v0.3
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
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.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:226)
at net.minecraft.server.World.addEntity(World.java:872)
at org.bukkit.craftbukkit.CraftWorld.spawn(CraftWorld.java:995)
at org.bukkit.craftbukkit.CraftWorld.spawn(CraftWorld.java:779)
at org.bukkit.craftbukkit.CraftWorld.spawnEntity(CraftWorld.java:326)
at me.ryanhamshire.ExtraHardMode.EntityEventHandler.onEntitySpawn(EntityEventHandler.java:216)
at sun.reflect.GeneratedMethodAccessor67.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:339)
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.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:226)
at net.minecraft.server.World.addEntity(World.java:872)
at net.minecraft.server.SpawnerCreature.spawnEntities(SpawnerCreature.java:158)
at net.minecraft.server.WorldServer.doTick(WorldServer.java:154)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:565)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:495)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:428)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
Caused by: java.lang.IllegalArgumentException: Specified enchantment cannot be applied to this itemstack
at org.bukkit.inventory.ItemStack.addEnchantment(ItemStack.java:301)
at com.modcrafting.diablodrops.drops.DropsAPI.getItem(DropsAPI.java:74)
at com.modcrafting.diablodrops.drops.DropsAPI.getItem(DropsAPI.java:140)
at com.modcrafting.diablodrops.listeners.KillListener.onSpawn(KillListener.java:68)
at sun.reflect.GeneratedMethodAccessor63.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:339)
... 25 more

commented

Also, upon changing "safe enchants" set to true, I get stuff like Wool or other random items with enchants like unbreaking I and stuff like that.

commented

This will be fixed once the new version is uploaded to BukkitDev. The code itself already contains the fix for this, but we have yet to upload the new build.

commented

Awesome sauce Nunnery. Plugin is badass and I'm hoping that when me and my buddy open our server that others will find it just as awesome.