From 2e80b57a53ed9bc2fab8778c37a538c256685acc Mon Sep 17 00:00:00 2001 From: ham1255 Date: Wed, 8 Jul 2020 12:37:10 +0400 Subject: [PATCH] Fixed mongodb url from config is wrong --- pom.xml | 2 +- .../java/net/limework/core/managers/DataSourcesManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index f7d5f65..b965f2e 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.limework.core LimeworkSpigotCore - 1.0.1-SNAPSHOT + 1.0.2-SNAPSHOT jar diff --git a/src/main/java/net/limework/core/managers/DataSourcesManager.java b/src/main/java/net/limework/core/managers/DataSourcesManager.java index fa92ca8..6c86a65 100644 --- a/src/main/java/net/limework/core/managers/DataSourcesManager.java +++ b/src/main/java/net/limework/core/managers/DataSourcesManager.java @@ -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")); } }