Skip to content

Commit

Permalink
Fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
VoChiDanh authored Aug 11, 2024
1 parent f3c7d07 commit 96da4d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/danh/miningcontest/Manager/FileManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ public static void updateConfig() {
List<String> current_user_help = currentConfig.getStringList("help.user");
List<String> current_blacklist_world = currentConfig.getStringList("blacklist_world");
List<String> default_blacklist_world = defaultConfig.getStringList("blacklist_world");
if (default_admin_help.size() != current_admin_help.size()) {
if (current_admin_help.isEmpty()) {
getConfig().set("help.admin", default_admin_help);
getFileSetting().save("config.yml");
}
if (default_blacklist_world.size() != current_blacklist_world.size()) {
if (current_blacklist_world.isEmpty()) {
getConfig().set("blacklist_world", default_blacklist_world);
getFileSetting().save("config.yml");
}
if (default_user_help.size() != current_user_help.size()) {
if (current_user_help.isEmpty()) {
getConfig().set("help.user", default_user_help);
getFileSetting().save("config.yml");
}
Expand Down

0 comments on commit 96da4d2

Please sign in to comment.