From bd0a045da35a656e4da8bdf4eb56488039b18ef1 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 23 Apr 2013 09:00:42 -0400 Subject: [PATCH] No need to handle the load ourselves. --- src/main/java/com/gmail/nossr50/party/PartyManager.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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();