refactor: shorter logs

This commit is contained in:
aro 2023-01-11 17:03:38 +01:00
parent 14b4916a67
commit 85199e3e45

View file

@ -107,9 +107,11 @@ public class NickoBukkit extends JavaPlugin {
localeFileManager = new LocaleFileManager(); localeFileManager = new LocaleFileManager();
if (config.isCustomLocale()) { if (config.isCustomLocale()) {
if (localeFileManager.dumpFromLocale(Locale.ENGLISH)) { if (localeFileManager.dumpFromLocale(Locale.ENGLISH)) {
getLogger().info("Successfully dumped English locale to lang.yml!"); if (localeFileManager.loadValues()) {
getLogger().info("Successfully loaded custom language file.");
}
} else { } else {
getLogger().warning("Failed to dump English locale to lang.yml! Custom Locale usage will be disabled."); getLogger().warning("Failed to load custom language file!");
} }
} }