1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-17 17:32:36 +01:00

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;
}
YamlConfiguration partiesFile = new YamlConfiguration();
try {
partiesFile.load(file);
}
catch (Exception e) {
e.printStackTrace();
}
YamlConfiguration partiesFile = YamlConfiguration.loadConfiguration(file);
for (String partyName : partiesFile.getConfigurationSection("").getKeys(false)) {
Party party = new Party();