mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
No need to handle the load ourselves.
This commit is contained in:
parent
9a4bed8c67
commit
bd0a045da3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user