Skip to content

Commit

Permalink
CHANGEABLE INIT DATABASE NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
mlus-asuka committed Jun 7, 2024
1 parent 226bc39 commit 7e3b6d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/vip/fubuki/playersync/PlayerSync.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private void commonSetup(final FMLCommonSetupEvent event) {

@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` (
Expand Down

0 comments on commit 7e3b6d4

Please sign in to comment.