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:
@@ -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")) {
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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: ''
|
||||
|
||||
Reference in New Issue
Block a user