On a fresh install of BogOfGold and setting the database type to mysql the config will default to version 3 which will result in the tables of the database being created but unable to flush.
Error:
[10:28:24] [Server thread/INFO]: [BagOfGold] Enabling BagOfGold v4.5.5
[10:28:24] [Server thread/INFO]: [BagOfGold] Config.yml was backed up to plugins/BagOfGold/backup/config.yml.bak2
[10:28:24] [Server thread/INFO]: [BagOfGold] Database version 3 detected.
[10:28:24] [Server thread/INFO]: [BagOfGold]Copying players from BagOfGold til BagOfGoldCore database
[10:28:24] [Server thread/ERROR]: Error occurred while enabling BagOfGold v4.5.5 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "one.lindegaard.BagOfGold.storage.DataStoreManager.flush()" because the return value of "one.lindegaard.BagOfGold.BagOfGold.getDataStoreManager()" is null
at one.lindegaard.BagOfGold.storage.MySQLDataStore.migrateDatabaseLayoutFromV3ToV4(MySQLDataStore.java:287) ~[BagOfGold-4.5.5.jar:?]
at one.lindegaard.BagOfGold.storage.DatabaseDataStore.initialize(DatabaseDataStore.java:145) ~[BagOfGold-4.5.5.jar:?]
at one.lindegaard.BagOfGold.BagOfGold.onEnable(BagOfGold.java:144) ~[BagOfGold-4.5.5.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:190) ~[purpur-1.20.2.jar:git-Purpur-2094]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[purpur-1.20.2.jar:git-Purpur-2094]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R2.CraftServer.enablePlugin(CraftServer.java:660) ~[purpur-1.20.2.jar:git-Purpur-2094]
at org.bukkit.craftbukkit.v1_20_R2.CraftServer.enablePlugins(CraftServer.java:571) ~[purpur-1.20.2.jar:git-Purpur-2094]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:632) ~[purpur-1.20.2.jar:git-Purpur-2094]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:429) ~[purpur-1.20.2.jar:git-Purpur-2094]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:345) ~[purpur-1.20.2.jar:git-Purpur-2094]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1102) ~[purpur-1.20.2.jar:git-Purpur-2094]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[purpur-1.20.2.jar:git-Purpur-2094]
at java.lang.Thread.run(Thread.java:842) ~[?:?]
On a fresh install of BogOfGold and setting the database type to
mysql
the config will default to version 3 which will result in the tables of the database being created but unable to flush.Error:
Per https://github.com/Rocologo/BagOfGold/issues/141#issuecomment-1503394463 changing the config type to version 8 seems to resolve this error.