CHANGEABLE INIT DATABASE NAME

This commit is contained in:
mlus 2024-06-07 19:30:21 +08:00
parent 226bc39185
commit 7e3b6d43b3

View File

@ -41,7 +41,7 @@ public class PlayerSync
@SubscribeEvent
public void onServerStarting(ServerStartingEvent event) throws SQLException {
JDBCsetUp.executeUpdate("CREATE DATABASE IF NOT EXISTS `playersync`",1);
JDBCsetUp.executeUpdate("CREATE DATABASE IF NOT EXISTS "+JdbcConfig.DATABASE_NAME.get(),1);
JDBCsetUp.executeUpdate("""
CREATE TABLE IF NOT EXISTS `player_data` (