服务器后台一直刷屏这个报错
[15:23:45 WARN] [OnlineReward]: Plugin OnlineReward v1.6.1-SNAPSHOT generated an exception while executing task 74791
java.lang.IllegalStateException: PlayerGetRewardEvent cannot be triggered asynchronously from another thread.
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:572) ~[arclight-1.20.1-1.0.2-730181a4.jar%23241!/:arclight-1.20.1-1.0.2-730181a4]
at com.blank038.onlinereward.data.PlayerData.lambda$checkRewards$1(PlayerData.java:136) ~[?:?]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:82) ~[arclight-1.20.1-1.0.2-730181a4.jar%23241!/:arclight-1.20.1-1.0.2-730181a4]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[arclight-1.20.1-1.0.2-730181a4.jar%23241!/:arclight-1.20.1-1.0.2-730181a4]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
装了PlaceholderAPI前置
在服务器输入 or时出现
>or
[14:30:32] [Server thread/WARN]: Unexpected exception while parsing console command "or"
org.bukkit.command.CommandException: Unhandled exception executing command 'or' in plugin OnlineReward v1.4.0-SNAPSHOT
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[PluginCommand.class:git-CatServerAsync-1.12.2-725f192]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:144) ~[SimpleCommandMap.class:git-CatServerAsync-1.12.2-725f192]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:709) ~[CraftServer.class:git-CatServerAsync-1.12.2-725f192]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:695) [CraftServer.class:git-CatServerAsync-1.12.2-725f192]
at net.minecraft.server.dedicated.DedicatedServer.func_71333_ah(DedicatedServer.java:516) [nz.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:474) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:780) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:634) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_281]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at com.blank038.onlinereward.Main.onCommand(Main.java:129) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[PluginCommand.class:git-CatServerAsync-1.12.2-725f192]
... 8 more
啥原因啊作者大大
[21:53:54] [Server thread/INFO] [Mohist]: Enabling OnlineReward v1.4.0-SNAPSHOT
[21:53:54] [Server thread/ERROR] [Mohist]: Error occurred while enabling OnlineReward v1.4.0-SNAPSHOT (Is it up to date?)
java.lang.NoSuchMethodError: com.mohistmc.bukkit.nms.proxy.DelegateClassLoder.defineClassMohist(Ljava/lang/String;[B)Ljava/lang/Class;
at com.esotericsoftware.reflectasm.AccessClassLoader.defineAccessClass(AccessClassLoader.java:57) ~[OnlineReward-1.4.0-SNAPSHOT.jar:?]
at com.esotericsoftware.reflectasm.MethodAccess.get(MethodAccess.java:276) ~[OnlineReward-1.4.0-SNAPSHOT.jar:?]
at com.blank038.onlinereward.interfaces.nms.impl.CommonNmsControlImpl.<init>(CommonNmsControlImpl.java:21) ~[?:?]
at com.blank038.onlinereward.Main.onEnable(Main.java:61) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:177) ~[JavaPlugin.class:?]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:318) [JavaPluginLoader.class:?]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:399) [SimplePluginManager.class:?]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:477) [CraftServer.class:?]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:418) [CraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:383) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:315) [nz.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:590) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_322]
执行or open时报错Fninternal error occurred uhile atempting to perfornthis command
以下为日志
[10:24:55] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'or' in plugin OnlineReward v1.3.1-SNAPSHOT
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[PluginCommand.class:git-CatServer-1.12.2-2a9163f]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:146) ~[SimpleCommandMap.class:git-CatServer-1.12.2-2a9163f]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:711) ~[CraftServer.class:git-CatServer-1.12.2-2a9163f]
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:1596) [pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:1439) [pa.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) [la.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) [la.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_131]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_131]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:834) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:472) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:771) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:625) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
Caused by: java.lang.NoClassDefFoundError: me/clip/placeholderapi/PlaceholderAPI
at com.blank038.onlinereward.util.GuiUtil.openSelectGui(GuiUtil.java:37) ~[?:?]
at com.blank038.onlinereward.Main.onCommand(Main.java:170) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[PluginCommand.class:git-CatServer-1.12.2-2a9163f]
... 15 more
Caused by: java.lang.ClassNotFoundException: me.clip.placeholderapi.PlaceholderAPI
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:140) ~[PluginClassLoader.class:git-CatServer-1.12.2-2a9163f]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:108) ~[PluginClassLoader.class:git-CatServer-1.12.2-2a9163f]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
at com.blank038.onlinereward.util.GuiUtil.openSelectGui(GuiUtil.java:37) ~[?:?]
at com.blank038.onlinereward.Main.onCommand(Main.java:170) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[PluginCommand.class:git-CatServer-1.12.2-2a9163f]
... 15 more
Caused by: java.lang.ClassNotFoundException: me.clip.placeholderapi.PlaceholderAPI
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_131]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:138) ~[PluginClassLoader.class:git-CatServer-1.12.2-2a9163f]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:108) ~[PluginClassLoader.class:git-CatServer-1.12.2-2a9163f]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
at com.blank038.onlinereward.util.GuiUtil.openSelectGui(GuiUtil.java:37) ~[?:?]
at com.blank038.onlinereward.Main.onCommand(Main.java:170) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[PluginCommand.class:git-CatServer-1.12.2-2a9163f]
... 15 more