mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
Fixed bad parties saving
This commit is contained in:
parent
b628b9eb4d
commit
d50123085f
@ -506,7 +506,14 @@ public final class PartyManager {
|
|||||||
partiesFile.set(partyName + ".Locked", party.isLocked());
|
partiesFile.set(partyName + ".Locked", party.isLocked());
|
||||||
partiesFile.set(partyName + ".ExpShareMode", party.getXpShareMode().toString());
|
partiesFile.set(partyName + ".ExpShareMode", party.getXpShareMode().toString());
|
||||||
partiesFile.set(partyName + ".ItemShareMode", party.getItemShareMode().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 {
|
try {
|
||||||
partiesFile.save(new File(partiesFilePath));
|
partiesFile.save(new File(partiesFilePath));
|
||||||
|
Loading…
Reference in New Issue
Block a user