Fixed bad parties saving

This commit is contained in:
bm01 2013-02-09 15:26:41 +01:00
parent b628b9eb4d
commit d50123085f

View File

@ -506,7 +506,14 @@ public final class PartyManager {
partiesFile.set(partyName + ".Locked", party.isLocked());
partiesFile.set(partyName + ".ExpShareMode", party.getXpShareMode().toString());
partiesFile.set(partyName + ".ItemShareMode", party.getItemShareMode().toString());
partiesFile.set(partyName + ".Members", party.getMembers());
List<String> memberNames = new ArrayList<String>();
for (OfflinePlayer member : party.getMembers()) {
memberNames.add(member.getName());
}
partiesFile.set(partyName + ".Members", memberNames);
try {
partiesFile.save(new File(partiesFilePath));