Skip to content

Commit

Permalink
添加新配置项
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamVoid committed Feb 2, 2024
1 parent 6f41ac1 commit 7363642
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public void loadConfig() throws IOException {
Database.Drivers.MySQL.Password = plugin.getConfig().getString("database.settings.mysql.password", "miraimc");
Database.Drivers.MySQL.Database = plugin.getConfig().getString("database.settings.mysql.database", "miraimc");
Database.Drivers.MySQL.Parameters = plugin.getConfig().getString("database.settings.mysql.parameters", "?useSSL=false");
Database.Settings.Prefix = plugin.getConfig().getString("database.settings.prefix", "miraimc_");
Database.Settings.Pool.ConnectionTimeout = plugin.getConfig().getInt("database.pool.connectionTimeout",30000);
Database.Settings.Pool.IdleTimeout = plugin.getConfig().getInt("database.pool.connectionTimeout",600000);
Database.Settings.Pool.MaxLifetime = plugin.getConfig().getInt("database.pool.maxLifetime",1800000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void loadConfig() throws IOException {
Database.Drivers.MySQL.Password = config.getString("database.settings.mysql.password", "miraimc");
Database.Drivers.MySQL.Database = config.getString("database.settings.mysql.database", "miraimc");
Database.Drivers.MySQL.Parameters = config.getString("database.settings.mysql.parameters", "?useSSL=false");
Database.Settings.Prefix = config.getString("database.settings.prefix", "miraimc_");
Database.Settings.Pool.ConnectionTimeout = config.getInt("database.pool.connectionTimeout",30000);
Database.Settings.Pool.IdleTimeout = config.getInt("database.pool.connectionTimeout",600000);
Database.Settings.Pool.MaxLifetime = config.getInt("database.pool.maxLifetime",1800000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public void loadConfig() {
Database.Drivers.MySQL.Password = plugin.getConfig().getString("database.settings.mysql.password", "miraimc");
Database.Drivers.MySQL.Database = plugin.getConfig().getString("database.settings.mysql.database", "miraimc");
Database.Drivers.MySQL.Parameters = plugin.getConfig().getString("database.settings.mysql.parameters", "?useSSL=false");
Database.Settings.Prefix = plugin.getConfig().getString("database.settings.prefix", "miraimc_");
Database.Settings.Pool.ConnectionTimeout = plugin.getConfig().getInt("database.pool.connectionTimeout",30000);
Database.Settings.Pool.IdleTimeout = plugin.getConfig().getInt("database.pool.connectionTimeout",600000);
Database.Settings.Pool.MaxLifetime = plugin.getConfig().getInt("database.pool.maxLifetime",1800000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void loadConfig() throws IOException {
Database.Drivers.MySQL.Password = serializable.database.drivers.mysql.password;
Database.Drivers.MySQL.Database = serializable.database.drivers.mysql.database;
Database.Drivers.MySQL.Parameters = serializable.database.drivers.mysql.parameters;
Database.Settings.Prefix = serializable.database.settings.prefix;
Database.Settings.Pool.ConnectionTimeout = serializable.database.settings.pool.connectionTimeout;
Database.Settings.Pool.IdleTimeout = serializable.database.settings.pool.idleTimeout;
Database.Settings.Pool.MaxLifetime = serializable.database.settings.pool.maxLifetime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void loadConfig() throws IOException {
Database.Drivers.MySQL.Password = serializable.database.drivers.mysql.password;
Database.Drivers.MySQL.Database = serializable.database.drivers.mysql.database;
Database.Drivers.MySQL.Parameters = serializable.database.drivers.mysql.parameters;
Database.Settings.Prefix = serializable.database.settings.prefix;
Database.Settings.Pool.ConnectionTimeout = serializable.database.settings.pool.connectionTimeout;
Database.Settings.Pool.IdleTimeout = serializable.database.settings.pool.idleTimeout;
Database.Settings.Pool.MaxLifetime = serializable.database.settings.pool.maxLifetime;
Expand Down

0 comments on commit 7363642

Please sign in to comment.