From 132b908eee9467bc90b10e52642c65eb1d99dc79 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Fri, 8 Mar 2019 18:08:00 -0800 Subject: [PATCH] Added some more missing defaults to database config --- .../config/hocon/database/ConfigCategoryServer.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/hocon/database/ConfigCategoryServer.java b/src/main/java/com/gmail/nossr50/config/hocon/database/ConfigCategoryServer.java index 46daf484a..c530824d0 100644 --- a/src/main/java/com/gmail/nossr50/config/hocon/database/ConfigCategoryServer.java +++ b/src/main/java/com/gmail/nossr50/config/hocon/database/ConfigCategoryServer.java @@ -6,12 +6,14 @@ import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; @ConfigSerializable public class ConfigCategoryServer { - @Setting(value = "Use_SSL", comment = "Enables SSL for MySQL/MariaDB connections, newer versions of MySQL will spam your console if you aren't using SSL") - private boolean useSSL; + @Setting(value = "Use_SSL", comment = "Enables SSL for MySQL/MariaDB connections, newer versions of MySQL will spam your console if you aren't using SSL." + + " It is recommended that you turn this on if you are using a newer version of MySQL," + + " if you run into issues with SSL not being supported, turn this off.") + private boolean useSSL = true; @Setting(value = "Server_Port", comment = "Your MySQL/MariaDB server port") - private String serverPort; + private int serverPort = 3306; @Setting(value = "Server_Address", comment = "The address for your MySQL/MariaDB server") - private String serverAddress; + private String serverAddress = "localhost"; }