Save after adding new keys
This commit is contained in:
@@ -99,6 +99,11 @@ public class LanguageManager {
|
|||||||
|
|
||||||
if (!newKeys.isEmpty()) {
|
if (!newKeys.isEmpty()) {
|
||||||
plugin.getLogger().info("[LanguageManager] Added new language keys: " + String.join(", ", newKeys));
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user