this.writeDefaultLanguageFile(lang);
}
} catch (Exception ex) {
System.out.println("[Residence] Failed to update language file: " + lang + ".yml");
helppages = new HelpEntry("");
language = new Language();
}
}
try {
File langFile = new File(new File(dataFolder, "Language"), cmanager.getLanguage() + ".yml");
if (langFile.isFile()) {
FileConfiguration langconfig = new YamlConfiguration();
langconfig.load(langFile);
helppages = HelpEntry.parseHelp(langconfig, "CommandHelp");
HelpEntry.setLinesPerPage(langconfig.getInt("HelpLinesPerPage", 7));
InformationPager.setLinesPerPage(langconfig.getInt("HelpLinesPerPage", 7));
language = Language.parseText(langconfig, "Language");
} else {
System.out.println("[Residence] Language file does not exist...");
}
} catch (Exception ex) {
System.out.println("[Residence] Failed to load language file: " + cmanager.getLanguage() + ".yml, Error: " + ex.getMessage());
Logger.getLogger(Residence.class.getName()).log(Level.SEVERE, null, ex);
helppages = new HelpEntry("");
language = new Language();
}
economy = null;
if (this.getConfig().getBoolean("Global.EnableEconomy", false)) {
System.out.println("[Residence] Scanning for economy systems...");
if (gmanager.getPermissionsPlugin() instanceof ResidenceVaultAdapter) {