add missing db config options

This commit is contained in:
nossr50 2019-03-07 21:19:04 -08:00
parent 493d6b0a67
commit f772b39eda
3 changed files with 40 additions and 0 deletions

View File

@ -17,4 +17,10 @@ public class ConfigCategoryDatabase {
@Setting(value = "Table_Prefix", comment = "The Prefix that will be used for tables in your DB") @Setting(value = "Table_Prefix", comment = "The Prefix that will be used for tables in your DB")
private String tablePrefix; private String tablePrefix;
@Setting(value = "Max_Connections", comment = "This setting is the max simultaneous MySQL/MariaDB connections allowed at a time, this needs to be high enough to support multiple player logins in quick succession")
private ConfigCategoryMaxConnections configCategoryMaxConnections;
@Setting(value = "Max_Pool_Size", comment = "This setting is the max size of the pool of cached connections that we hold at any given time.")
private ConfigCategoryMaxPoolSize configCategoryMaxPoolSize;
} }

View File

@ -0,0 +1,18 @@
package com.gmail.nossr50.config.hocon.database;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
@ConfigSerializable
public class ConfigCategoryMaxConnections {
@Setting(value = "Misc")
private int misc;
@Setting(value = "Load")
private int load;
@Setting(value = "Save")
private int save;
}

View File

@ -0,0 +1,16 @@
package com.gmail.nossr50.config.hocon.database;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
@ConfigSerializable
public class ConfigCategoryMaxPoolSize {
@Setting(value = "Misc")
private int misc;
@Setting(value = "Load")
private int load;
@Setting(value = "Save")
private int save;
}