Fixed mongodb url from config is wrong

This commit is contained in:
ham1255 2020-07-08 12:37:10 +04:00
parent 4141bcdfb1
commit 2e80b57a53
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>net.limework.core</groupId>
<artifactId>LimeworkSpigotCore</artifactId>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.2-SNAPSHOT</version>
<packaging>jar</packaging>
<build>

View File

@ -13,7 +13,7 @@ public class DataSourcesManager {
public DataSourcesManager(LimeworkSpigotCore plugin) {
Configuration config = plugin .getConfig();
if (config.getBoolean("Mongodb.enabled")){
mongoClient = MongoClients.create();
mongoClient = MongoClients.create(config.getString("Mongodb.url"));
}
}