19
19
@ ConfigComment ("This configuration file contains settings that mainly apply to or manage the following elements:" )
20
20
@ ConfigComment (" * Data storage" )
21
21
@ ConfigComment (" * Gamemodes (commands, ...)" )
22
- @ ConfigComment (" * Internet connectivity (metrics, web-based content-enriched features, ...)" )
22
+ @ ConfigComment (" * Internet connectivity (web-based content-enriched features, ...)" )
23
23
@ ConfigComment ("" )
24
24
@ ConfigComment ("Note that this configuration file is dynamic:" )
25
25
@ ConfigComment (" * It gets updated with the newest settings and comments after BentoBox loaded its settings from it." )
@@ -93,6 +93,10 @@ public class Settings implements ConfigObject {
93
93
@ ConfigEntry (path = "general.database.backup-period" )
94
94
private int databaseBackupPeriod = 5 ;
95
95
96
+ @ ConfigComment ("Enable SSL connection to MongoDB, MariaDB, MySQL and PostgreSQL databases." )
97
+ @ ConfigEntry (path = "general.database.use-ssl" , since = "1.12.0" )
98
+ private boolean useSSL = false ;
99
+
96
100
@ ConfigComment ("Allow FTB Autonomous Activator to work (will allow a pseudo player [CoFH] to place and break blocks and hang items)" )
97
101
@ ConfigComment ("Add other fake player names here if required" )
98
102
@ ConfigEntry (path = "general.fakeplayers" , experimental = true )
@@ -223,12 +227,6 @@ public class Settings implements ConfigObject {
223
227
private boolean autoOwnershipTransferIgnoreRanks = false ;
224
228
225
229
/* WEB */
226
- @ ConfigComment ("BentoBox uses bStats.org to get global data about the plugin to help improving it." )
227
- @ ConfigComment ("bStats has nearly no effect on your server's performance and the sent data is completely" )
228
- @ ConfigComment ("anonymous so please consider twice if you really want to disable it." )
229
- @ ConfigEntry (path = "web.metrics" )
230
- private boolean metrics = true ;
231
-
232
230
@ ConfigComment ("Toggle whether BentoBox can connect to GitHub to get data about updates and addons." )
233
231
@ ConfigComment ("Disabling this will result in the deactivation of the update checker and of some other" )
234
232
@ ConfigComment ("features that rely on the data downloaded from the GitHub API." )
@@ -252,14 +250,6 @@ public class Settings implements ConfigObject {
252
250
// ---------------------------------------------
253
251
// Getters and setters
254
252
255
- public boolean isMetrics () {
256
- return metrics ;
257
- }
258
-
259
- public void setMetrics (boolean metrics ) {
260
- this .metrics = metrics ;
261
- }
262
-
263
253
public String getDefaultLanguage () {
264
254
return defaultLanguage ;
265
255
}
@@ -296,6 +286,24 @@ public int getDatabasePort() {
296
286
return databasePort ;
297
287
}
298
288
289
+ /**
290
+ * This method returns the useSSL value.
291
+ * @return the value of useSSL.
292
+ * @since 1.12.0
293
+ */
294
+ public boolean isUseSSL () {
295
+ return useSSL ;
296
+ }
297
+
298
+ /**
299
+ * This method sets the useSSL value.
300
+ * @param useSSL the useSSL new value.
301
+ * @since 1.12.0
302
+ */
303
+ public void setUseSSL (boolean useSSL ) {
304
+ this .useSSL = useSSL ;
305
+ }
306
+
299
307
public void setDatabasePort (int databasePort ) {
300
308
this .databasePort = databasePort ;
301
309
}
0 commit comments