Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BogOfGold Database Config Autodection of MySQL #148

Open
Dynamic-Gravity opened this issue Nov 29, 2023 · 0 comments
Open

BogOfGold Database Config Autodection of MySQL #148

Dynamic-Gravity opened this issue Nov 29, 2023 · 0 comments

Comments

@Dynamic-Gravity
Copy link

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) ~[?:?]

Per #141 (comment) changing the config type to version 8 seems to resolve this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant