9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-19 15:09:24 +00:00

fix mongodb user password reset

This commit is contained in:
XiaoMoMi
2025-08-07 16:21:27 +08:00
parent 64015d3d27
commit f4b2322030
3 changed files with 5 additions and 5 deletions

View File

@@ -184,9 +184,9 @@ public class BukkitIntegrationManager implements IntegrationManager {
}
if (isHooked("RealisticSeasons")) {
registerSeasonProvider(new RealisticSeasonsProvider());
} else if (isHooked("AdvancedSeasons", "1.4", "1.5", "1.6")) {
} else if (isHooked("AdvancedSeasons")) {
registerSeasonProvider(new AdvancedSeasonsProvider());
} else if (isHooked("CustomCrops", "3.4", "3.5", "3.6")) {
} else if (isHooked("CustomCrops")) {
registerSeasonProvider(new CustomCropsSeasonProvider());
}
if (isHooked("Vault")) {

View File

@@ -66,7 +66,7 @@ public class MongoDBProvider extends AbstractStorage {
return;
}
if (section.contains("user")) {
if (section.contains("user") && !section.getString("user").isEmpty() && section.contains("password") && !section.getString("password").isEmpty()) {
MongoCredential credential = MongoCredential.createCredential(
section.getString("user", "root"),
section.getString("database", "minecraft"),

View File

@@ -56,8 +56,8 @@ MariaDB:
MongoDB:
host: 'localhost'
port: '27017'
#user: 'root'
#password: 'password'
user: ''
password: ''
# If this section is not empty, it would override the configs above
# https://www.mongodb.com/docs/manual/reference/connection-string/
connection-uri: ''