mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 14:38:47 +00:00
Don't load database if it's not in use
This commit is contained in:
1 parent
9486e18c4f
commit
6d40fbca9a
1 file changed
+2
@@ -65,6 +65,7 @@ public class Enterprise extends ConfigurationFile {
|
||||
ConfigValue<String> databaseSchema = new ConfigValue<String>("database.database");
|
||||
ConfigValue<Integer> databasePort = new ConfigValue<Integer>("database.port");
|
||||
|
||||
if (getConfiguration().getConfig().enterprise.getValue()) {
|
||||
// Convert database values to Database
|
||||
database = new Database(
|
||||
Database.DatabaseType.valueOf(databaseType.getValue()),
|
||||
@@ -82,3 +83,4 @@ public class Enterprise extends ConfigurationFile {
|
||||
database.connect();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user