mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-01 20:15:28 +02:00
Hypens instead of Underscores because the serializer is a dumbo
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.gmail.nossr50.config.hocon.database;
|
||||
|
||||
import com.gmail.nossr50.config.ConfigConstants;
|
||||
import ninja.leaping.configurate.objectmapping.Setting;
|
||||
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
|
||||
@@ -10,7 +11,7 @@ public class ConfigDatabase {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "Database_Cleaning",
|
||||
@Setting(value = "Database-Cleaning",
|
||||
comment = "Settings to automatically purge old users to keep database sizes small.")
|
||||
private ConfigSectionCleaning configSectionCleaning = new ConfigSectionCleaning();
|
||||
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.gmail.nossr50.config.hocon.database;
|
||||
|
||||
import com.gmail.nossr50.config.ConfigConstants;
|
||||
import ninja.leaping.configurate.objectmapping.Setting;
|
||||
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
|
||||
@@ -17,27 +18,27 @@ public class ConfigSectionCleaning {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "Purge_Old_Users",
|
||||
@Setting(value = "Purge-Old-Users",
|
||||
comment = "Turn this on to enable automatic database pruning of old users." +
|
||||
"\nDefault value: "+PURGE_OLD_USERS)
|
||||
private boolean purgeOldUsers = PURGE_OLD_USERS;
|
||||
|
||||
@Setting(value = "Purge_Powerless_Users", comment = "Powerless users are players who have not" +
|
||||
@Setting(value = "Purge-Powerless-Users", comment = "Powerless users are players who have not" +
|
||||
" leveled up in a single skill." +
|
||||
"\nDefault value: "+PURGE_POWERLESS_USERS)
|
||||
private boolean purgePowerlessUsers = PURGE_POWERLESS_USERS;
|
||||
|
||||
@Setting(value = "Only_Purge_At_Plugin_Startup",
|
||||
@Setting(value = "Only-Purge-At-Plugin-Startup",
|
||||
comment = "If set to true, then purging will only happen when the plugin first loads." +
|
||||
"\nKeep in mind, this will trigger on reload as well." +
|
||||
"\nThis purge is on a 2 second delay from plugin start-up and runs in an ASYNC thread." +
|
||||
"\nDefault value: "+ONLY_PURGE_AT_STARTUP)
|
||||
private boolean onlyPurgeAtStartup = ONLY_PURGE_AT_STARTUP;
|
||||
|
||||
@Setting(value = "Purge_Interval_In_Hours", comment = "How many hours between automatic purging?")
|
||||
@Setting(value = "Purge-Interval-In-Hours", comment = "How many hours between automatic purging?")
|
||||
private int purgeInterval = PURGE_INTERVAL_DEFAULT;
|
||||
|
||||
@Setting(value = "Old_User_Cutoff_In_Months", comment = "Users who haven't connected in this many months will be purged" +
|
||||
@Setting(value = "Old-User-Cutoff-In-Months", comment = "Users who haven't connected in this many months will be purged" +
|
||||
"\nDefault value: "+OLD_USER_CUTOFF_IN_MONTHS)
|
||||
private int oldUserCutoffMonths = OLD_USER_CUTOFF_IN_MONTHS;
|
||||
|
||||
|
@@ -10,10 +10,10 @@ public class ConfigSectionDatabase {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "Database_Name", comment = "The database name for your DB, this DB must already exist on the SQL server.")
|
||||
@Setting(value = "Database-Name", comment = "The database name for your DB, this DB must already exist on the SQL server.")
|
||||
private String databaseName = "example_database_name";
|
||||
|
||||
@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 = "mcmmo_";
|
||||
|
||||
/*
|
||||
|
@@ -15,13 +15,13 @@ public class ConfigSectionMaxConnections {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "Misc_Connection_Limit", comment = "Default value: "+MISC_DEFAULT)
|
||||
@Setting(value = "Misc-Connection-Limit", comment = "Default value: "+MISC_DEFAULT)
|
||||
private int misc = 30;
|
||||
|
||||
@Setting(value = "Load_Connection_Limit", comment = "Default value: "+LOAD_DEFAULT)
|
||||
@Setting(value = "Load-Connection-Limit", comment = "Default value: "+LOAD_DEFAULT)
|
||||
private int load = 30;
|
||||
|
||||
@Setting(value = "Save_Connection_Limit", comment = "Default value: "+SAVE_DEFAULT)
|
||||
@Setting(value = "Save-Connection-Limit", comment = "Default value: "+SAVE_DEFAULT)
|
||||
private int save = 30;
|
||||
|
||||
/*
|
||||
|
@@ -15,13 +15,13 @@ public class ConfigSectionMaxPoolSize {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "Misc_Pool", comment = "Default value: "+MISC_DEFAULT)
|
||||
@Setting(value = "Misc-Pool", comment = "Default value: "+MISC_DEFAULT)
|
||||
private int misc = 10;
|
||||
|
||||
@Setting(value = "Load_Pool", comment = "Default value: "+LOAD_DEFAULT)
|
||||
@Setting(value = "Load-Pool", comment = "Default value: "+LOAD_DEFAULT)
|
||||
private int load = 20;
|
||||
|
||||
@Setting(value = "Save_Pool", comment = "Default value: "+SAVE_DEFAULT)
|
||||
@Setting(value = "Save-Pool", comment = "Default value: "+SAVE_DEFAULT)
|
||||
private int save = 20;
|
||||
|
||||
/*
|
||||
|
@@ -14,7 +14,7 @@ public class ConfigSectionMySQL {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "Use_MySQL", comment = "If set to true, mcMMO will use MySQL/MariaDB instead of FlatFile storage" +
|
||||
@Setting(value = "Use-MySQL", comment = "If set to true, mcMMO will use MySQL/MariaDB instead of FlatFile storage" +
|
||||
"\nIt is highly recommended to use a MySQL/MariaDB server over FlatFile," +
|
||||
" especially if the number of players on your Minecraft server is fairly high." +
|
||||
"\nDefault value: "+USE_MYSQL_DEFAULT)
|
||||
|
@@ -10,11 +10,11 @@ public class ConfigSectionUser {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "User_Name", comment = "The authorized user for your MySQL/MariaDB DB" +
|
||||
@Setting(value = "User-Name", comment = "The authorized user for your MySQL/MariaDB DB" +
|
||||
"\nThis needs to be an existing user")
|
||||
private String username = "example_user_name";
|
||||
|
||||
@Setting(value = "User_Password", comment = "The password for your authorized user")
|
||||
@Setting(value = "User-Password", comment = "The password for your authorized user")
|
||||
private String password = "example_user_password";
|
||||
|
||||
/*
|
||||
|
@@ -15,27 +15,27 @@ public class UserConfigSectionServer {
|
||||
* CONFIG NODES
|
||||
*/
|
||||
|
||||
@Setting(value = "Use_SSL", comment = "Enables SSL for MySQL/MariaDB connections." +
|
||||
@Setting(value = "Use-SSL", comment = "Enables SSL for MySQL/MariaDB connections." +
|
||||
"\nIf your SQL server supports SSL, it is recommended to have it on but not necessary." +
|
||||
"\nIf you run into any issues involving SSL, its best to just turn this off." +
|
||||
"\nDefault value: "+USE_SSL_DEFAULT)
|
||||
private boolean useSSL = USE_SSL_DEFAULT;
|
||||
|
||||
@Setting(value = "Server_Port", comment = "Your MySQL/MariaDB server port" +
|
||||
@Setting(value = "Server-Port", comment = "Your MySQL/MariaDB server port" +
|
||||
"\nThe default port is typically 3306 for MySQL, but every server configuration is different!" +
|
||||
"\nDefault value: "+SERVER_PORT_DEFAULT)
|
||||
private int serverPort = SERVER_PORT_DEFAULT;
|
||||
|
||||
@Setting(value = "Server_Address", comment = "The address for your MySQL/MariaDB server" +
|
||||
@Setting(value = "Server-Address", comment = "The address for your MySQL/MariaDB server" +
|
||||
"If the MySQL server is hosted on the same machine, you can use the localhost alias" +
|
||||
"\nDefault value: "+SERVER_ADDRESS_DEFAULT)
|
||||
private String serverAddress = SERVER_ADDRESS_DEFAULT;
|
||||
|
||||
@Setting(value = "Max_Connections", comment = "This setting is the max simultaneous MySQL/MariaDB connections allowed at a time." +
|
||||
@Setting(value = "Max-Connections", comment = "This setting is the max simultaneous MySQL/MariaDB connections allowed at a time." +
|
||||
"\nThis needs to be high enough to support multiple player logins in quick succession, it is recommended that you do not lower these values")
|
||||
private ConfigSectionMaxConnections configSectionMaxConnections = new ConfigSectionMaxConnections();
|
||||
|
||||
@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.")
|
||||
@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 ConfigSectionMaxPoolSize configSectionMaxPoolSize = new ConfigSectionMaxPoolSize();
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user