1.16.5猫端,玩家重新进服后背包会清空,进度也会清空,就像是第一次进服,或者说玩家数据没有被保存
请提供具体的报错信息. 如: 该玩家背包被情况时, 控制台相同时刻产生的错误信息.
a526026058 发表于 2023-10-1 16:17
请提供具体的报错信息. 如: 该玩家背包被情况时, 控制台相同时刻产生的错误信息. ...
日志在这,我猜测是这行的问题[16:26:41] [Server thread/WARN] [com.bergerkiller.bukkit.mw.MyWorlds]: [My_Worlds] Failed to load player data for jiang_x
苏卡不列 发表于 2023-10-1 16:46
日志在这,我猜测是这行的问题[16:26:41] [Server thread/WARN] [com.bergerkiller.bukkit.mw.MyWorlds]: ...
根据所给的日志, 距离触发停止服务器最近的报错是由于BKCommonLib插件引起的, 该插件为了处理NBT数据, 调用了一个不支持的操作 (当然, 这很常见, 插件是无法直接操作NBT的, 只能借助NBT库来操作. 但是NBT库又是高度依赖版本的, 所以很容易出现版本不兼容而报错的情况)
```
[16:27:21] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler]: jiang_x lost connection: Disconnected
[16:27:21] [Server thread/WARN] [com.bergerkiller.bukkit.mw.MyWorlds]: [My_Worlds] Failed to save player data for jiang_x
java.lang.UnsupportedOperationException: method net.minecraft.nbt.NBTTagList.isEmpty is not available
at com.bergerkiller.mountiplex.reflection.util.fast.InitInvoker$UnavailableInvoker.create(InitInvoker.java:250) ~[?:?]
at com.bergerkiller.mountiplex.reflection.util.fast.InitInvoker.initializeInvoker(InitInvoker.java:70) ~[?:?]
at com.bergerkiller.mountiplex.reflection.util.fast.InitInvoker.invoke(InitInvoker.java:80) ~[?:?]
at com.bergerkiller.generated.net.minecraft.nbt.NBTTagListHandle$impl.isEmpty(Unknown Source) ~[?:?]
at com.bergerkiller.bukkit.common.nbt.CommonTagList.isEmpty(CommonTagList.java:81) ~[?:?]
at com.bergerkiller.mountiplex.reflection.util.fast.GeneratedCodeInvoker$mpldefgen5fba0460.create(Unknown Source) ~[?:?]
at com.bergerkiller.mountiplex.reflection.util.fast.GeneratedCodeInvoker$mpldefgen5fba0460.invoke(Unknown Source) ~[?:?]
at com.bergerkiller.mountiplex.reflection.declarations.Template$StaticMethod.invoke(Template.java:1323) ~[?:?]
at com.bergerkiller.generated.net.minecraft.nbt.NBTBaseHandle.createRawHandleForData(NBTBaseHandle.java:131) ~[?:?]
at com.bergerkiller.bukkit.common.nbt.CommonTagCompound.putGetRemove(CommonTagCompound.java:147) ~[?:?]
at com.bergerkiller.bukkit.common.nbt.CommonTagCompound.put(CommonTagCompound.java:469) ~[?:?]
at com.bergerkiller.bukkit.common.nbt.CommonTagCompound.putListValues(CommonTagCompound.java:243) ~[?:?]
at com.bergerkiller.bukkit.mw.MWPlayerDataController.onSave(MWPlayerDataController.java:981) ~[?:?]
at com.bergerkiller.bukkit.common.internal.logic.PlayerFileDataHandler$PlayerFileDataHook.save(PlayerFileDataHandler.java:79) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_362]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_362]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_362]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_362]
at com.bergerkiller.mountiplex.reflection.util.fast.ReflectionInvoker$ReflectionMethodInvoker.invokeVA(ReflectionInvoker.java:127) ~[?:?]
at com.bergerkiller.mountiplex.reflection.util.fast.InitInvoker.invokeVA(InitInvoker.java:110) ~[?:?]
at com.bergerkiller.mountiplex.reflection.ClassInterceptor$CallbackMethodInterceptor.invokeVA(ClassInterceptor.java:523) ~[?:?]
at com.bergerkiller.mountiplex.reflection.util.fast.Invoker.invoke(Invoker.java:33) ~[?:?]
at net.minecraft.world.storage.PlayerData$mpldefgen63ac1472.func_237335_a_(Unknown Source) ~[?:?]
at net.minecraft.server.management.PlayerList.func_72391_b(PlayerList.java:414) ~[?:?]
at net.minecraft.server.management.PlayerList.func_72367_e(PlayerList.java:448) ~[?:?]
at net.minecraft.server.management.PlayerList.disconnect(PlayerList.java:428) ~[?:?]
at net.minecraft.network.play.ServerPlayNetHandler.func_147231_a(ServerPlayNetHandler.java:1522) ~[?:?]
at net.minecraft.network.NetworkManager.func_179293_l(NetworkManager.java:383) ~[?:?]
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:160) ~[?:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:1077) ~[?:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:336) ~[?:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:944) ~[?:?]
at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:777) ~[?:?]
at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:265) ~[?:?]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_362]
[16:27:21] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: jiang_x left the game
[16:27:33] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Stopping the server
[16:27:33] [Server thread/INFO] [moe.plushie.armourers_workshop.ArmourersWorkshop]: stop local service
[16:27:33] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server
[16:27:33] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players
```
a526026058 发表于 2023-10-1 17:10
根据所给的日志, 距离触发停止服务器最近的报错是由于mountiplex插件引起的, 该插件为了处理NBT数据, 调用 ...
那这个要咋解决
另外, 所提供的logs包含大量的ERROR, 尽管这些ERROR可能对该问题没有影响. 但是仍然建议先优先处理这些ERROR
1. 您安装的More Villagers模组和Better Village模组可能存在兼容问题. 所以Better Villages模组发出警告.
解决方案: 下载https://www.curseforge.com/minecraft/mc-mods/better-village-forge中的数据包, 以让这两个模组更好地兼容
2. BlockLocker插件无法支持1.20版本. 如果您目前可以正常使用该插件, 那么说明该警告是误报
解决方案: 可以使用压缩软件打开BlockLocker.jar, 然后手动编辑plugins.yml中的支持版本信息 (将其修改为1.20, 前提是确保该插件可以正常工作)
1. 您安装的More Villagers模组和Better Village模组可能存在兼容问题. 所以Better Villages模组发出警告.
解决方案: 下载https://www.curseforge.com/minecraft/mc-mods/better-village-forge中的数据包, 以让这两个模组更好地兼容
[16:22:55] [Worker-Main-13/ERROR] [bettervillage]: More Villagers compatibility is not enabled for Better Village and More Villagers is present in your mod list.
- Please install the datapack for better compatibility between Better Villages and More Villagers.
- You can find the datapack URL in the `compatibility` section of the Better Villages description.
- URL=https://www.curseforge.com/minecraft/mc-mods/better-village-forge
2. BlockLocker插件无法支持1.20版本. 如果您目前可以正常使用该插件, 那么说明该警告是误报
解决方案: 可以使用压缩软件打开BlockLocker.jar, 然后手动编辑plugins.yml中的支持版本信息 (将其修改为1.20, 前提是确保该插件可以正常工作)
[16:23:26] [Server thread/ERROR] [Minecraft]: Could not load 'plugins/BlockLocker.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Unsupported API version 1.20
at org.bukkit.craftbukkit.v1_16_R3.util.CraftMagicNumbers.checkSupported(CraftMagicNumbers.java:315) ~[forge:?]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[forge:?]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:397) ~[forge:?]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:304) ~[forge:?]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:298) ~[forge:1.16.5-6d6b2d34]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:209) ~[?:?]
at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:739) ~[?:?]
at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:265) ~[?:?]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_362]
苏卡不列 发表于 2023-10-1 17:20
那这个要咋解决
请检查你的BKCommonLib插件的版本是否安装正确.
根据您所提供的logs中显示, 您的服务器为1.16.5
但您所安装的BKCommonLib版本号却为1.20.1, 所以显然该插件操作NBT会引发错误.
[16:21:12] [main/INFO] [cpw.mods.modlauncher.Launcher]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.39, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui]
但您所安装的BKCommonLib版本号却为1.20.1, 所以显然该插件操作NBT会引发错误.
a526026058 发表于 2023-10-1 17:26
根据您所提供的logs中显示, 您的服务器为1.16.5
但您所安装的BKCommonLib版本号却为1.20.1, 所以显然该插 ...
okok,解决了