GZY-mingbai / ScreenInMC-Plugin

MIT License
44 stars 2 forks source link

无法加载核心/显示屏幕 #26

Open ERblocks opened 1 year ago

ERblocks commented 1 year ago

版本:1.20.1 服务器核心:PaperSpigot 问题:放置后卡在正在加载核心,无法正常显示 报错如下: [13:38:48 WARN]: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 [13:38:48 WARN]: at ScreenInMC (1).jar//cn.mingbai.ScreenInMC.CommandListener.onCommand(CommandListener.java:37) [13:38:48 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) [13:38:48 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155) [13:38:48 WARN]: at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:1007) [13:38:48 WARN]: at org.bukkit.craftbukkit.v1_20R1.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64) [13:38:48 WARN]: at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) [13:38:48 WARN]: at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:324) [13:38:48 WARN]: at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:308) [13:38:48 WARN]: at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2354) [13:38:48 WARN]: at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$21(PlayerConnection.java:2314) [13:38:48 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59) [13:38:48 WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) [13:38:48 WARN]: at net.minecraft.server.TickTask.run(TickTask.java:18) [13:38:48 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153) [13:38:48 WARN]: at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24) [13:38:48 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1339) [13:38:48 WARN]: at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) [13:38:48 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126) [13:38:48 WARN]: at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1316) [13:38:48 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1309) [13:38:48 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136) [13:38:48 WARN]: at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:1287) [13:38:48 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1175) [13:38:48 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) [13:38:48 WARN]: at java.base/java.lang.Thread.run(Thread.java:1623) [13:38:56 INFO]: TomLeDieu_ issued server command: /screen controller [13:39:40 WARN]: java.lang.IllegalStateException: channel not registered to an event loop [13:39:40 WARN]: at io.netty.channel.AbstractChannel.eventLoop(AbstractChannel.java:164) [13:39:40 WARN]: at io.netty.channel.AbstractChannelHandlerContext.executor(AbstractChannelHandlerContext.java:132) [13:39:40 WARN]: at io.netty.channel.AbstractChannelHandlerContext.newPromise(AbstractChannelHandlerContext.java:995) [13:39:40 WARN]: at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:984) [13:39:40 WARN]: at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1025) [13:39:40 WARN]: at ScreenInMC (1).jar//cn.mingbai.ScreenInMC.Utils.CraftUtils.CraftUtils.sendPacket(CraftUtils.java:316) [13:39:40 WARN]: at ScreenInMC (1).jar//cn.mingbai.ScreenInMC.Screen.Screen.sendPutScreenPacket(Screen.java:219) [13:39:40 WARN]: at ScreenInMC (1).jar//cn.mingbai.ScreenInMC.Screen.Screen.putScreen(Screen.java:301) [13:39:40 WARN]: at ScreenInMC (1).jar//cn.mingbai.ScreenInMC.Controller.Item.onPlayerClick(Item.java:501) [13:39:40 WARN]: at ScreenInMC (1).jar//cn.mingbai.ScreenInMC.EventListener.handleClick(EventListener.java:171) [13:39:40 WARN]: at ScreenInMC (1).jar//cn.mingbai.ScreenInMC.EventListener.onPlayerInteract(EventListener.java:162) [13:39:40 WARN]: at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor673.execute(Unknown Source) [13:39:40 WARN]: at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) [13:39:40 WARN]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) [13:39:40 WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) [13:39:40 WARN]: at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) [13:39:40 WARN]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) [13:39:40 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) [13:39:40 WARN]: at org.bukkit.craftbukkit.v1_20_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:591) [13:39:40 WARN]: at net.minecraft.server.level.PlayerInteractManager.a(PlayerInteractManager.java:537) [13:39:40 WARN]: at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2015) [13:39:40 WARN]: at net.minecraft.network.protocol.game.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) [13:39:40 WARN]: at net.minecraft.network.protocol.game.PacketPlayInUseItem.a(PacketPlayInUseItem.java:9) [13:39:40 WARN]: at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$ensureRunningOnSameThread$0(PlayerConnectionUtils.java:51) [13:39:40 WARN]: at net.minecraft.server.TickTask.run(TickTask.java:18) [13:39:40 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153) [13:39:40 WARN]: at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24) [13:39:40 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1339) [13:39:40 WARN]: at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) [13:39:40 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126) [13:39:40 WARN]: at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1316) [13:39:40 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1309) [13:39:40 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.bp(IAsyncTaskHandler.java:114) [13:39:40 WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1425) [13:39:40 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1171) [13:39:40 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) [13:39:40 WARN]: at java.base/java.lang.Thread.run(Thread.java:1623)