[Bug]: Cannot create player_levels table in MariaDB due to syntax error
Mod Version
0.8.0
Hytale Version
2026.01.24-6e2d4fc36
Describe the bug
[2026/01/24 10:37:17 SEVERE] [PendingLoadJavaPlugin] Failed to load plugin mods/LevelingCore-0.8.0.jar
java.lang.ExceptionInInitializerError
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1169)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:341)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor(MethodHandleAccessorFactory.java:104)
at java.base/jdk.internal.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:138)
at java.base/java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:546)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:496)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
at com.hypixel.hytale.server.core.plugin.pending.PendingLoadJavaPlugin.load(PendingLoadJavaPlugin.java:48)
at com.hypixel.hytale.server.core.plugin.pending.PendingLoadJavaPlugin.load(PendingLoadJavaPlugin.java:15)
at com.hypixel.hytale.server.core.plugin.PluginManager.setup(PluginManager.java:215)
at com.hypixel.hytale.server.core.HytaleServer.boot(HytaleServer.java:373)
at com.hypixel.hytale.server.core.HytaleServer.<init>(HytaleServer.java:331)
at com.hypixel.hytale.LateMain.lateMain(LateMain.java:54)
at com.hypixel.hytale.Main.main(Main.java:43)
Caused by: com.azuredoom.levelingcore.exceptions.LevelingCoreException: Failed to create player_levels table
at ThirdPartyPlugin//com.azuredoom.levelingcore.database.JdbcLevelRepository.createTableIfNotExists(JdbcLevelRepository.java:75)
at ThirdPartyPlugin//com.azuredoom.levelingcore.database.JdbcLevelRepository.<init>(JdbcLevelRepository.java:30)
at ThirdPartyPlugin//com.azuredoom.levelingcore.config.internal.ConfigBootstrap.bootstrap(ConfigBootstrap.java:63)
at ThirdPartyPlugin//com.azuredoom.levelingcore.LevelingCore.<clinit>(LevelingCore.java:49)
... 15 more
Caused by: java.sql.SQLSyntaxErrorException: (conn=2712) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'int INT DEFAULT 0 NOT NULL' at line 1
at ThirdPartyPlugin//org.mariadb.jdbc.export.ExceptionFactory.createException(ExceptionFactory.java:309)
at ThirdPartyPlugin//org.mariadb.jdbc.export.ExceptionFactory.create(ExceptionFactory.java:403)
at ThirdPartyPlugin//org.mariadb.jdbc.message.ClientMessage.readPacket(ClientMessage.java:196)
at ThirdPartyPlugin//org.mariadb.jdbc.client.impl.StandardClient.readPacket(StandardClient.java:1411)
at ThirdPartyPlugin//org.mariadb.jdbc.client.impl.StandardClient.readResults(StandardClient.java:1350)
at ThirdPartyPlugin//org.mariadb.jdbc.client.impl.StandardClient.readResponse(StandardClient.java:1269)
at ThirdPartyPlugin//org.mariadb.jdbc.client.impl.StandardClient.execute(StandardClient.java:1193)
at ThirdPartyPlugin//org.mariadb.jdbc.Statement.executeInternal(Statement.java:1003)
at ThirdPartyPlugin//org.mariadb.jdbc.Statement.execute(Statement.java:1132)
at ThirdPartyPlugin//org.mariadb.jdbc.Statement.execute(Statement.java:471)
at ThirdPartyPlugin//com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95)
at ThirdPartyPlugin//com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
at ThirdPartyPlugin//com.azuredoom.levelingcore.database.JdbcLevelRepository.createTableIfNotExists(JdbcLevelRepository.java:69)
... 18 more
From the error message I gathered that it fails due to this line specifically, and if I were to venture a guess, I would say using 'int' as the column name is not possible without extra quotation / escape characters so that mariadb actually reads it as the column name and not the data type.
https://github.com/AzureDoom/LevelingCore/blob/50c885444c414470cd9c55d642e12979a4f897a4/src/main/java/com/azuredoom/levelingcore/database/JdbcLevelRepository.java#L69C78-L69C81
i think using more verbose terminology for the ability columns isn't bad anyway, in stead of str,agi,per,vit,int, just make them strength, agility, perception, vitality, intelligence. makes it easier on debugging & contributing too i would imagine.
Will be resolved next update!