diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index 4bd0f7683..e54203216 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -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();