Fixed parties not being loaded at startup

+ minor cleanup
This commit is contained in:
bm01
2013-01-27 01:32:41 +01:00
parent 5151be05b9
commit a8fa625b5c
2 changed files with 37 additions and 38 deletions

View File

@ -16,6 +16,8 @@ public final class PartyManager {
private static String partiesFilePath = mcMMO.p.getDataFolder().getPath() + File.separator + "FlatFileStuff" + File.separator + "parties.yml";
private static List<Party> parties = new ArrayList<Party>();
private PartyManager() {}
/**
* Check if two players are in the same party.
*
@ -414,7 +416,7 @@ public final class PartyManager {
/**
* Load party file.
*/
private static void loadParties() {
public static void loadParties() {
File file = new File(partiesFilePath);
if (!file.exists()) {