mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 00:26:45 +01:00
add missing db config options
This commit is contained in:
parent
493d6b0a67
commit
f772b39eda
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
}
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user