Save after adding new keys

This commit is contained in:
Jikoo 2020-04-24 10:47:51 -04:00
parent 723381cb2b
commit 67131ab9f9

View file

@ -99,6 +99,11 @@ public class LanguageManager {
if (!newKeys.isEmpty()) {
plugin.getLogger().info("[LanguageManager] Added new language keys: " + String.join(", ", newKeys));
try {
localeConfig.save(file);
} catch (IOException e) {
plugin.getLogger().log(Level.WARNING, "[LanguageManager] Unable to save resource " + locale + ".yml", e);
}
}
}