Error While Updating From 1.20.4 To 1.20.5
Introduction
Updating your Minecraft server from 1.20.4 to 1.20.5 can be a straightforward process, but sometimes issues can arise. In this article, we will explore a common error that occurs during the update process and provide a step-by-step guide to resolve it.
Error Description
The error you are experiencing is likely due to a compatibility issue between the Shopkeepers plugin and the new version of Minecraft. The plugin is unable to load the saved shopkeepers data, resulting in a startup error that disables the plugin.
Error Log
The error log provided shows the following:
[21:38:50] [Server thread/INFO]: [Shopkeepers] Enabling Shopkeepers v2.23.5
[21:38:50] [Server thread/INFO]: [Shopkeepers] Citizens found: Enabling NPC shopkeepers.
[21:38:50] [Server thread/ERROR]: [Shopkeepers] Failed to load the save file! Note: Server downgrades or manually editing the save file are not supported!
com.nisovin.shopkeepers.util.data.persistence.InvalidDataFormatException: Failed to load data as Bukkit config!
at Shopkeepers-2.23.5.jar/com.nisovin.shopkeepers.util.data.persistence.bukkit.BukkitConfigDataStore.loadFromString(BukkitConfigDataStore.java:63) ~[Shopkeepers-2.23.5.jar:?]
at Shopkeepers-2.23.5.jar/com.nisovin.shopkeepers.storage.SKShopkeeperStorage.doReload(SKShopkeeperStorage.java:449) ~[Shopkeepers-2.23.5.jar:?]
at Shopkeepers-2.23.5.jar/com.nisovin.shopkeepers.storage.SKShopkeeperStorage.reload(SKShopkeeperStorage.java:356) ~[Shopkeepers-2.23.5.jar:?]
at Shopkeepers-2.23.5.jar/com.nisovin.shopkeepers.SKShopkeepersPlugin.onEnable(SKShopkeepersPlugin.java:418) ~[Shopkeepers-2.23.5.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:280) ~[paper-api-1.21.5-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.5.jar:1.21.5-56-1acf3b3]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.5.jar:1.21.5-56-1acf3b3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21.5-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:649) ~[paper-1.21.5.jar:1.21.5-56-1acf3b3]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:604) ~[paper-1.21.5.jar:1.21.5-56-1acf3b3]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:741) ~[paper-1.21.5.jar:1.21.5-56-1acf3b3]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:486) ~[paper-1.21.5.jar:1.21.5-56-1acf3b3]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:280) ~[paper-1.21.5.jar:1.21.5-56-1acf3b3]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1161) ~[paper-1.21.5.jar:1.21.5-56-1acf3b3]
at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:308) ~[paper-1.21.5.jar:1.21.5-56-1acf3b3]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: org.bukkit.configuration.InvalidConfigurationException: Could not call method 'public static org.bukkit.inventory.meta.ItemMeta org.bukkit.craftbukkit.inventory.SerializableMeta.deserialize(java.util.Map) throws java.lang.Throwable' of class org.bukkit.craftbukkit.inventory.SerializableMeta for deserialization
at Shopkeepers-2.23.5.jar/com.nisovin.shopkeepers.util.bukkit.ConfigUtils.loadConfigSafely(ConfigUtils.java:259) ~[Shopkeepers-2.23.5.jar:?]
at Shopkeepers-2.23.5.jar/com.nisovin.shopkeepers.util.data.persistence.bukkit.BukkitConfigDataStore.loadFromString(BukkitConfigDataStore.java:61) ~[Shopkeepers-2.23.5.jar:?]
... 15 more
Caused by: java.lang.IllegalStateException: Not a list: {modifiers:[],show_in_tooltip:0b}; Not a number; Failed to get element minecraft:levels; Value 0 outside of range [1:255]; Failed to get element minecraft:show_in_tooltip missed input: {levels:{"minecraft:mending":1},show_in_tooltip:0b} missed input: {"minecraft:attribute_modifiers":{modifiers:[],show_in_tooltip:0b},"minecraft:enchantments":{levels:{"minecraft:mending":1},show_in_tooltip:0b}}; Not a list: {modifiers:[],show_in_tooltip:0b}; Not a number; Failed to get element minecraft:levels; Value 0 outside of range [1:255]; Failed to get element minecraft:show_in_tooltip missed input: {levels:{"minecraft:mending":1},show_in_tooltip:0b} missed input: {"minecraft:attribute_modifiers":{modifiers:[],show_in_tooltip:0b},"minecraft:enchantments":{levels:{"minecraft:mending":1},show_in_tooltip:0b}}; Not a list: {modifiers:[],show_in_tooltip:0b}; Not a number; Failed to get element minecraft:levels; Value 0 outside of range [1:255]; Failed to get element minecraft:show_in_tooltip missed input: {levels:{"minecraft:mending":1},show_in_tooltip:0b} missed input: {"minecraft:attribute_modifiers":{modifiers:[],show_in_tooltip:0b},"minecraft:enchantments":{levels:{"minecraft:mending":1},show_in_tooltip:0b}}; Not a list: {modifiers:[],show_in_tooltip:0b}; Not a number; Failed to get element minecraft:levels; Value 0 outside of range [1:255]; Failed to get element minecraft:show_in_tooltip missed input: {levels:{"minecraft:mending":1},show_in_tooltip:0b} missed input: {"minecraft:attribute_modifiers":{modifiers:[],show_in_tooltip:0b},"minecraft:enchantments":{levels:{"minecraft:mending":1},show_in_tooltip:0b}}; Not a list: {modifiers:[],show_in_tooltip:0b}; Not a number; Failed to get element minecraft:levels; Value 0 outside of range [1:255]; Failed to get element minecraft:show_in_tooltip missed input: {levels:{"minecraft:mending":1},show_in_tooltip:0b} missed input: {"minecraft:attribute_modifiers":{modifiers:[],show_in_tooltip:0b},"minecraft:enchantments":{levels:{"minecraft:mending":1},show_in_tooltip:0b}}; Not a list: {modifiers:[],show_in_tooltip:0b}; Not a number; Failed to get element minecraft:levels; Value 0 outside of range [1:255]; Failed to get element minecraft:show_in_tooltip missed input: {levels:{"minecraft:mending":1},show_in_tooltip:0b} missed input: {"minecraft:attribute_modifiers":{modifiers:[],show_in_tooltip:0b},"minecraft:enchantments":{levels:{"minecraft:mending":1},show_in_tooltip:0b}}; Not a list: {modifiers:[],show_in_tooltip:0b}; Not a number; Failed to get element minecraft:levels; Value 0 outside of range [1:255]; Failed to get element minecraft:show_in_tooltip missed input: {levels:{"minecraft:mending":1},show_in_tooltip:0b} missed input: {"minecraft:attribute_modifiers":{modifiers:[],show_in_tooltip:0b},"minecraft:enchantments":{levels:{"minecraft:mending":1},show_in_tooltip:0b}}; Not a list: {modifiers:[],show_in_tooltip:0b}; Not a number; Failed to get element minecraft:levels; Value 0 outside of range [1:255]; Failed to get element minecraft:show_in_tooltip missed input: {levels:{"minecraft:mending":1},show_in_tooltip:0b} missed input: {"minecraft:attribute_modifiers":{modifiers:[],show_in_tooltip:0b},"minecraft:enchantments":{levels:{"minecraft:mending":1},show_in_tooltip:0b}}; Not a list: {modifiers:[],show_in_tooltip:0b}; Not a number; Failed to get element minecraft:levels; Value 0 outside of range [1:255]; Failed to get element minecraft:show<br/>
**Q&A: Error while Updating from 1.20.4 to 1.20.5**
=====================================================
**Q: What is the error I'm experiencing?**
----------------------------------------
A: The error you are experiencing is likely due to a compatibility issue between the Shopkeepers plugin and the new version of Minecraft. The plugin is unable to load the saved shopkeepers data, resulting in a startup error that disables the plugin.
**Q: What is the cause of this error?**
--------------------------------------
A: The cause of this error is likely due to a change in the way Minecraft handles item metadata in the new version. The Shopkeepers plugin is unable to parse the new metadata format, resulting in the error.
**Q: How can I resolve this error?**
--------------------------------------
A: To resolve this error, you will need to update the Shopkeepers plugin to a version that is compatible with the new version of Minecraft. You can do this by visiting the plugin's website and downloading the latest version.
**Q: What if I don't want to update the plugin?**
----------------------------------------------
A: If you don't want to update the plugin, you can try to manually edit the shopkeepers data to fix the issue. However, this is not recommended as it can be a complex and time-consuming process.
**Q: Can I roll back to the previous version of Minecraft?**
------------------------------------------------------
A: Yes, you can roll back to the previous version of Minecraft. However, this will not fix the issue with the Shopkeepers plugin and you will need to update the plugin to a version that is compatible with the new version of Minecraft.
**Q: What if I'm still experiencing issues after updating the plugin?**
-------------------------------------------------------------------
A: If you're still experiencing issues after updating the plugin, you can try to contact the plugin's developer for further assistance. They may be able to provide you with additional guidance or fix the issue in a future update.
**Q: Can I use a different plugin that is compatible with the new version of Minecraft?**
-----------------------------------------------------------------------------------
A: Yes, you can use a different plugin that is compatible with the new version of Minecraft. However, you will need to uninstall the Shopkeepers plugin and install the new plugin.
**Q: How can I prevent this error from occurring in the future?**
----------------------------------------------------------------
A: To prevent this error from occurring in the future, you can make sure to update the Shopkeepers plugin to a version that is compatible with the new version of Minecraft as soon as it is released. You can also consider using a different plugin that is compatible with the new version of Minecraft.
**Conclusion**
----------
In conclusion, the error you are experiencing is likely due to a compatibility issue between the Shopkeepers plugin and the new version of Minecraft. To resolve this error, you will need to update the plugin to a version that is compatible with the new version of Minecraft. If you're still experiencing issues after updating the plugin, you can try to contact the plugin's developer for further assistance.