我这几天一直在做Rpg服务器,刚刚开始插件明明是好的,今天早上装了个Rpgitems4.09就出错了,我删了Rpgitems4.09也没有用!我在控制台输入/ils stats它会显示:“[ILS]You can olay run that command in-game!”
在游戏里面输入会显示:“An internal error occurred while attempting to perform this command”
并且控制台还会显示:
[12:28:47] [Server thread/ERROR]: Could not pass event EntityRegainHealthEvent to ItemLoreStats v7.38
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[Start.jar:git-Spigot-59b08be-0899683]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[Start.jar:git-Spigot-59b08be-0899683]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [Start.jar:git-Spigot-59b08be-0899683]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.EntityLiving.heal(EntityLiving.java:630) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.FoodMetaData.a(FoodMetaData.java:65) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.EntityHuman.s_(EntityHuman.java:223) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.EntityPlayer.l(EntityPlayer.java:282) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:366) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.PacketPlayInFlying.a(SourceFile:126) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.PacketPlayInFlying.a(SourceFile:8) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [Start.jar:git-Spigot-59b08be-0899683]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_121]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_121]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [Start.jar:git-Spigot-59b08be-0899683]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
Caused by: java.lang.NoSuchMethodError: org.bukkit.inventory.EntityEquipment.getItemInMainHand()Lorg/bukkit/inventory/ItemStack;
at com.github.supavitax.itemlorestats.ItemLoreStats.itemInMainHand(ItemLoreStats.java:384) ~[?:?]
at com.github.supavitax.itemlorestats.ItemLoreStats$ItemLoreStatsListener.onRegenHealth(ItemLoreStats.java:1149) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[Start.jar:git-Spigot-59b08be-0899683]
... 18 more
[12:28:47] [Craft Scheduler Thread - 8/WARN]: Exception in thread "Craft Scheduler Thread - 8"
[12:28:47] [Craft Scheduler Thread - 8/WARN]: org.apache.commons.lang.UnhandledException: Plugin ItemLoreStats v7.38 generated an exception while executing task 22
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: org.bukkit.inventory.EntityEquipment.getItemInMainHand()Lorg/bukkit/inventory/ItemStack;
at com.github.supavitax.itemlorestats.ItemLoreStats.itemInMainHand(ItemLoreStats.java:384)
at com.github.supavitax.itemlorestats.ItemLoreStats.updateHealth(ItemLoreStats.java:1070)
at com.github.supavitax.itemlorestats.ItemLoreStats$ItemLoreStatsListener$2.run(ItemLoreStats.java:1268)
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more
[12:28:51] [Server thread/ERROR]: Could not pass event EntityRegainHealthEvent to ItemLoreStats v7.38
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[Start.jar:git-Spigot-59b08be-0899683]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[Start.jar:git-Spigot-59b08be-0899683]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [Start.jar:git-Spigot-59b08be-0899683]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.EntityLiving.heal(EntityLiving.java:630) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.FoodMetaData.a(FoodMetaData.java:65) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.EntityHuman.s_(EntityHuman.java:223) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.EntityPlayer.l(EntityPlayer.java:282) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:366) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.PacketPlayInFlying.a(SourceFile:126) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.PacketPlayInFlying.a(SourceFile:8) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [Start.jar:git-Spigot-59b08be-0899683]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_121]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_121]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [Start.jar:git-Spigot-59b08be-0899683]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [Start.jar:git-Spigot-59b08be-0899683]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
Caused by: java.lang.NoSuchMethodError: org.bukkit.inventory.EntityEquipment.getItemInMainHand()Lorg/bukkit/inventory/ItemStack;
at com.github.supavitax.itemlorestats.ItemLoreStats.itemInMainHand(ItemLoreStats.java:384) ~[?:?]
at com.github.supavitax.itemlorestats.ItemLoreStats$ItemLoreStatsListener.onRegenHealth(ItemLoreStats.java:1149) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[Start.jar:git-Spigot-59b08be-0899683]
... 18 more
求解决!!