CHANGEABLE INIT DATABASE NAME
This commit is contained in:
parent
226bc39185
commit
7e3b6d43b3
|
|
@ -41,7 +41,7 @@ public class PlayerSync
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onServerStarting(ServerStartingEvent event) throws SQLException {
|
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("""
|
JDBCsetUp.executeUpdate("""
|
||||||
CREATE TABLE IF NOT EXISTS `player_data` (
|
CREATE TABLE IF NOT EXISTS `player_data` (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user