mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-19 15:09:23 +00:00
2.4.4
This commit is contained in:
@@ -7,7 +7,7 @@ plugins {
|
||||
|
||||
allprojects {
|
||||
|
||||
version = "2.4.3"
|
||||
version = "2.4.4"
|
||||
|
||||
apply<JavaPlugin>()
|
||||
apply(plugin = "java")
|
||||
|
||||
@@ -48,7 +48,7 @@ dependencies {
|
||||
// api module
|
||||
implementation(project(":api"))
|
||||
implementation(project(":common"))
|
||||
implementation("com.github.Xiao-MoMi:Sparrow-Heart:0.33")
|
||||
implementation("com.github.Xiao-MoMi:Sparrow-Heart:0.34")
|
||||
|
||||
// adventure
|
||||
implementation("net.kyori:adventure-api:4.17.0")
|
||||
|
||||
@@ -67,9 +67,10 @@ public class MongoDBImpl extends AbstractStorage {
|
||||
|
||||
collectionPrefix = section.getString("collection-prefix", "nameplates");
|
||||
var settings = MongoClientSettings.builder().uuidRepresentation(UuidRepresentation.STANDARD);
|
||||
if (!section.getString("connection-uri", "").equals("")) {
|
||||
if (!section.getString("connection-uri", "").isEmpty()) {
|
||||
settings.applyConnectionString(new ConnectionString(section.getString("connection-uri", "")));
|
||||
mongoClient = MongoClients.create(settings.build());
|
||||
this.mongoClient = MongoClients.create(settings.build());
|
||||
this.database = mongoClient.getDatabase(section.getString("database", "minecraft"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user