Closed Re0XIAOPA closed 10 months ago
1.20.2 还没经过测试,我这两天测试一下
我也出现这种情况,而且我用的是最新版0.2.4,commandAPI正常加载,这我在velocity的跨服的一个子服上面使用时出现这样的情况,但是我用相同的服务器核心 leaf-1.20.2 在本地测试时,发现可以正常使用,不知是因为跨服的问题还是其他插件的原因?
以下是我的指令以及错误提示
[01:21:48 INFO]: Zhongyun issued server command: /fp spawn Ziyu2 minecraft:overworld 239 55 -134
[01:21:48 ERROR]: [CommandAPI] Unhandled exception executing '/fp spawn Ziyu2 minecraft:overworld 239 55 -134'
java.lang.ExceptionInInitializerError: null
at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerImpl.newPlayer(NMSServerImpl.java:31) ~[假人fakeplayer-0.2.4.jar:?]
at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.entity.FakePlayer.
以下是我的指令以及错误提示 [01:21:48 INFO]: Zhongyun issued server command: /fp spawn Ziyu2 minecraft:overworld 239 55 -134 [01:21:48 ERROR]: [CommandAPI] Unhandled exception executing '/fp spawn Ziyu2 minecraft:overworld 239 55 -134' java.lang.ExceptionInInitializerError: null at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerImpl.newPlayer(NMSServerImpl.java:31) ~[假人fakeplayer-0.2.4.jar:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.entity.FakePlayer.(FakePlayer.java:97) ~[假人fakeplayer-0.2.4.jar:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.manager.FakeplayerManager.spawnAsync(FakeplayerManager.java:108) ~[假人fakeplayer-0.2.4.jar:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.command.impl.SpawnCommand.spawn(SpawnCommand.java:71) ~[假人fakeplayer-0.2.4.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.executors.CommandExecutor.run(CommandExecutor.java:49) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.executors.NormalExecutor.executeWith(NormalExecutor.java:44) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:140) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:127) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:96) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIHandler.lambda$generateCommand$0(CommandAPIHandler.java:258) ~[CommandAPI-9.2.0.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[leaf-1.20.2.jar:?] at net.minecraft.commands.Commands.performCommand(Commands.java:333) ~[?:?] at net.minecraft.commands.Commands.performCommand(Commands.java:321) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:2293) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$20(ServerGamePacketListenerImpl.java:2253) ~[?:?] at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:59) ~[?:?] at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1335) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:182) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1313) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1306) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1283) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1172) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:304) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at java.base/java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:208) ~[?:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerLevelImpl.(NMSServerLevelImpl.java:16) ~[假人fakeplayer-0.2.4.jar:?] ... 30 more
你的服务器是不是缺少默认的主世界,假人初始化的时候需要在 world
世界出生点出生
以下是我的指令以及错误提示 [01:21:48 INFO]: Zhongyun issued server command: /fp spawn Ziyu2 minecraft:overworld 239 55 -134 [01:21:48 ERROR]: [CommandAPI] Unhandled exception executing '/fp spawn Ziyu2 minecraft:overworld 239 55 -134' java.lang.ExceptionInInitializerError: null at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerImpl.newPlayer(NMSServerImpl.java:31) ~[假人fakeplayer-0.2.4.jar:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.entity.FakePlayer。(FakePlayer.java:97) ~[假人fakeplayer-0.2.4.jar:?? ] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.manager.FakeplayerManager.spawnAsync(FakeplayerManager.java:108) ~[假人fakeplayer-0.2.4.jar:?jar ] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.command.impl.SpawnCommand.spawn(SpawnCommand.java:71) ~[假人fakeplayer-0.2.4.jar:?jar ] 在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.executors.CommandExecutor.run(CommandExecutor.java:49) ~[命令API-9.2.0.jar:?]在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.executors.NormalExecutor.executeWith(NormalExecutor.java:44) ~[CommandAPI-9.2.0.jar:??] ] 在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:140) ~[CommandAPI-9.2.0.jar:??] ] 在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:127) ~[CommandAPI-9.2.0.jar:??] ] 在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:96) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIHandler.lambda$generateCommand$0(CommandAPIHandler.java:258) ~[CommandAPI-9.2.0.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[leaf-1.20.2.jar:?] at net.minecraft.commands.Commands.performCommand(Commands.java:333) ~[?:?] at net.minecraft.commands.Commands.performCommand(Commands.java:321) ~[?:?] atnet.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:2293) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$20(ServerGamePacketListenerImpl.java:2253) ~[?:?] at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:59) ~[?:?] at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]在 net.minecraft.server.TickTask.run(TickTask.java:18) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] 在 net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?] 在 net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?] 在 net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1335) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] 在 net.minecraft.server.MinecraftServer.d(MinecraftServer.java:182) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1313) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1306) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1283) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1172) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:304) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at java.base/java.lang.Thread.run(Thread.java:833) ~[?:?]原因:java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:208) ~[?:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerLevelImpl。(NMSServerLevelImpl.java:16) ~[假人fakeplayer-0.2.4.jar:?] ...另外 30
你的服务器是不是缺少默认的主世界,假人初始化的时候需要在 世界出生点出生
world
是的,我的默认主世界是空岛插件创建的世界
以下是我的指令以及错误提示 [01:21:48 INFO]: Zhongyun issued server command: /fp spawn Ziyu2 minecraft:overworld 239 55 -134 [01:21:48 ERROR]: [CommandAPI] Unhandled exception executing '/fp spawn Ziyu2 minecraft:overworld 239 55 -134' java.lang.ExceptionInInitializerError: null at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerImpl.newPlayer(NMSServerImpl.java:31) ~[假人fakeplayer-0.2.4.jar:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.entity.FakePlayer。(FakePlayer.java:97) ~[假人fakeplayer-0.2.4.jar:?? ] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.manager.FakeplayerManager.spawnAsync(FakeplayerManager.java:108) ~[假人fakeplayer-0.2.4.jar:?jar ] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.command.impl.SpawnCommand.spawn(SpawnCommand.java:71) ~[假人fakeplayer-0.2.4.jar:?jar ] 在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.executors.CommandExecutor.run(CommandExecutor.java:49) ~[命令API-9.2.0.jar:?]在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.executors.NormalExecutor.executeWith(NormalExecutor.java:44) ~[CommandAPI-9.2.0.jar:??] ] 在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:140) ~[CommandAPI-9.2.0.jar:??] ] 在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:127) ~[CommandAPI-9.2.0.jar:??] ] 在 CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:96) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIHandler.lambda$generateCommand$0(CommandAPIHandler.java:258) ~[CommandAPI-9.2.0.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[leaf-1.20.2.jar:?] at net.minecraft.commands.Commands.performCommand(Commands.java:333) ~[?:?] at net.minecraft.commands.Commands.performCommand(Commands.java:321) ~[?:?] atnet.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:2293) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$20(ServerGamePacketListenerImpl.java:2253) ~[?:?] at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:59) ~[?:?] at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]在 net.minecraft.server.TickTask.run(TickTask.java:18) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] 在 net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?] 在 net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?] 在 net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1335) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] 在 net.minecraft.server.MinecraftServer.d(MinecraftServer.java:182) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1313) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1306) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1283) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1172) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:304) ~[leaf-1.20.2.jar:git-Leaf-“79aeaca”] at java.base/java.lang.Thread.run(Thread.java:833) ~[?:?]原因:java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:208) ~[?:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerLevelImpl。(NMSServerLevelImpl.java:16) ~[假人fakeplayer-0.2.4.jar:?] ...另外 30
你的服务器是不是缺少默认的主世界,假人初始化的时候需要在 世界出生点出生
world
是的,我的默认主世界是空岛插件创建的世界
https://github.com/tanyaofei/minecraft-fakeplayer/releases/tag/0.2.6 修复了这个问题,试试
https://github.com/tanyaofei/minecraft-fakeplayer/releases/tag/0.2.6 修复了这个问题,试试
我在本地服务器上进行了测试,先将默认主世界id改成 acidisland ,然后启动服务器并成功生成假人 但是当我在服务器里进行测试时,登录服默认主世界为 world ,然后我生成时服务器会掉线 这是服务器的logs 2023-11-27-19.log
你的服务器是不是缺少默认的主世界,假人初始化的时候需要在
world
世界出生点出生
我在本地测试是可以的,哪怕是默认主世界不是word 但是我在登录服测试0.2.6时,生成假人时服务器会卡住并关闭,登录服的默认主世界我已经改为world,在测试0.2.4时,同样是生成假人时出错
这是我的服务器logs,可以从第240行看,我输指令是在这里,插件版本为0.2.6 2023-11-27-19.log
这是登录服 level-name=world 时 插件为0.2.4时的报错
13:59:16 INFO]: Zhongyun issued server command: /fp spawn Zhongi minecraft:overworld 904 65 747
[13:59:16 ERROR]: [CommandAPI] Unhandled exception executing '/fp spawn Zhongi minecraft:overworld 904 65 747'
java.lang.NoClassDefFoundError: Could not initialize class io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerLevelImpl
at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerImpl.newPlayer(NMSServerImpl.java:31) ~[假人fakeplayer-0.2.4.jar:?]
at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.entity.FakePlayer.
这是登录服 level-name=world 时 插件为0.2.4时的报错
13:59:16 INFO]: Zhongyun issued server command: /fp spawn Zhongi minecraft:overworld 904 65 747 [13:59:16 ERROR]: [CommandAPI] Unhandled exception executing '/fp spawn Zhongi minecraft:overworld 904 65 747' java.lang.NoClassDefFoundError: Could not initialize class io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerLevelImpl at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerImpl.newPlayer(NMSServerImpl.java:31) ~[假人fakeplayer-0.2.4.jar:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.entity.FakePlayer.(FakePlayer.java:97) ~[假人fakeplayer-0.2.4.jar:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.manager.FakeplayerManager.spawnAsync(FakeplayerManager.java:108) ~[假人fakeplayer-0.2.4.jar:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.core.command.impl.SpawnCommand.spawn(SpawnCommand.java:71) ~[假人fakeplayer-0.2.4.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.executors.CommandExecutor.run(CommandExecutor.java:49) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.executors.NormalExecutor.executeWith(NormalExecutor.java:44) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:140) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:127) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:96) ~[CommandAPI-9.2.0.jar:?] at CommandAPI-9.2.0.jar/dev.jorel.commandapi.CommandAPIHandler.lambda$generateCommand$0(CommandAPIHandler.java:258) ~[CommandAPI-9.2.0.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[leaf-1.20.2.jar:?] at net.minecraft.commands.Commands.performCommand(Commands.java:333) ~[?:?] at net.minecraft.commands.Commands.performCommand(Commands.java:321) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:2293) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$20(ServerGamePacketListenerImpl.java:2253) ~[?:?] at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:59) ~[?:?] at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1335) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:182) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1313) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1306) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1283) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1172) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:304) ~[leaf-1.20.2.jar:git-Leaf-"79aeaca"] at java.base/java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NullPointerException [in thread "Server thread"] at java.base/java.util.Objects.requireNonNull(Objects.java:209) ~[?:?] at 假人fakeplayer-0.2.4.jar/io.github.hello09x.fakeplayer.v1_20_R2.spi.NMSServerLevelImpl.(NMSServerLevelImpl.java:16) ~[假人fakeplayer-0.2.4.jar:?] ... 30 more
更换成0.2.6之后试试
更换成0.2.6之后试试 我0.2.6和0.2.4都试过,请往上翻
更换成0.2.6之后试试 我0.2.6和0.2.4都试过,请往上翻
最新版的 0.2.7
修复了你日志里的部分错误,但不确定能不能解决完你所有的问题。如果不能那应该是与 Taboolib
有冲突
由于长时间没有回复,关闭此issue
作者您好 我所使用的服务端是paper 插件加载以及前置CommandAPI加载没问题,但是在创建假人的时候出现了执行错误 以下是报错内容 [22:29:35 ERROR]: [CommandAPI] Unhandled exception executing '/fp spawn test minecraft:overworld 409.00 77.59 -535.42' java.lang.NullPointerException: Cannot invoke "net.minecraft.server.network.PlayerConnection.l()" because "player.c" is null at net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket$Entry.(ClientboundPlayerInfoUpdatePacket.java:185) ~[?:?]
at net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket$Entry.(ClientboundPlayerInfoUpdatePacket.java:182) ~[?:?]
at net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket.(ClientboundPlayerInfoUpdatePacket.java:30) ~[paper-1.20.2.jar:git-Paper-223]
at org.bukkit.craftbukkit.v1_20_R2.entity.CraftPlayer.playerListName(CraftPlayer.java:498) ~[paper-1.20.2.jar:git-Paper-223]
at io.github.hello09x.fakeplayer.core.entity.FakePlayer.(FakePlayer.java:109) ~[fakeplayer-0.2.2.jar:?]
at io.github.hello09x.fakeplayer.core.manager.FakeplayerManager.spawnAsync(FakeplayerManager.java:114) ~[fakeplayer-0.2.2.jar:?]
at io.github.hello09x.fakeplayer.core.command.impl.SpawnCommand.spawn(SpawnCommand.java:72) ~[fakeplayer-0.2.2.jar:?]
at dev.jorel.commandapi.executors.CommandExecutor.run(CommandExecutor.java:49) ~[CommandAPI-9.2.0.jar:?]
at dev.jorel.commandapi.executors.NormalExecutor.executeWith(NormalExecutor.java:44) ~[CommandAPI-9.2.0.jar:?]
at dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:140) ~[CommandAPI-9.2.0.jar:?]
at dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:127) ~[CommandAPI-9.2.0.jar:?]
at dev.jorel.commandapi.CommandAPIExecutor.execute(CommandAPIExecutor.java:96) ~[CommandAPI-9.2.0.jar:?]
at dev.jorel.commandapi.CommandAPIHandler.lambda$generateCommand$0(CommandAPIHandler.java:258) ~[CommandAPI-9.2.0.jar:?]
at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[paper-1.20.2.jar:?]
at net.minecraft.commands.Commands.performCommand(Commands.java:330) ~[?:?]
at net.minecraft.commands.Commands.performCommand(Commands.java:314) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:2207) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$19(ServerGamePacketListenerImpl.java:2167) ~[?:?]
at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:59) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.2.jar:git-Paper-223]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1324) ~[paper-1.20.2.jar:git-Paper-223]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:193) ~[paper-1.20.2.jar:git-Paper-223]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1301) ~[paper-1.20.2.jar:git-Paper-223]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1294) ~[paper-1.20.2.jar:git-Paper-223]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1272) ~[paper-1.20.2.jar:git-Paper-223]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1160) ~[paper-1.20.2.jar:git-Paper-223]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) ~[paper-1.20.2.jar:git-Paper-223]
at java.lang.Thread.run(Thread.java:833) ~[?:?]