No need to handle the load ourselves.

This commit is contained in:
GJ 2013-04-23 09:00:42 -04:00
parent 9a4bed8c67
commit bd0a045da3

View File

@ -445,14 +445,7 @@ public final class PartyManager {
return; return;
} }
YamlConfiguration partiesFile = new YamlConfiguration(); YamlConfiguration partiesFile = YamlConfiguration.loadConfiguration(file);
try {
partiesFile.load(file);
}
catch (Exception e) {
e.printStackTrace();
}
for (String partyName : partiesFile.getConfigurationSection("").getKeys(false)) { for (String partyName : partiesFile.getConfigurationSection("").getKeys(false)) {
Party party = new Party(); Party party = new Party();