Fixed mongodb url from config is wrong
This commit is contained in:
parent
3c461c6307
commit
f9017773bc
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.limework.core</groupId>
|
<groupId>net.limework.core</groupId>
|
||||||
<artifactId>LimeworkSpigotCore</artifactId>
|
<artifactId>LimeworkSpigotCore</artifactId>
|
||||||
<version>1.0.1-SNAPSHOT</version>
|
<version>1.0.2-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -13,7 +13,7 @@ public class DataSourcesManager {
|
|||||||
public DataSourcesManager(LimeworkSpigotCore plugin) {
|
public DataSourcesManager(LimeworkSpigotCore plugin) {
|
||||||
Configuration config = plugin .getConfig();
|
Configuration config = plugin .getConfig();
|
||||||
if (config.getBoolean("Mongodb.enabled")){
|
if (config.getBoolean("Mongodb.enabled")){
|
||||||
mongoClient = MongoClients.create();
|
mongoClient = MongoClients.create(config.getString("Mongodb.url"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user