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;
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user