Browse Source

Added some more missing defaults to database config

nossr50 6 years ago
parent
commit
132b908eee

+ 6 - 4
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";
 }