mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
parent
d8bbe459b9
commit
9fb4e0988b
@ -20,6 +20,7 @@ Version 1.4.07-dev
|
|||||||
= Fixed a bug where teleport location was never reset if warmup was set to 0 for Chimera Wing.
|
= Fixed a bug where teleport location was never reset if warmup was set to 0 for Chimera Wing.
|
||||||
! Improved profile saving
|
! Improved profile saving
|
||||||
! Updated localization files
|
! Updated localization files
|
||||||
|
! Party item share category states are now saved when the server shuts down.
|
||||||
|
|
||||||
Version 1.4.06
|
Version 1.4.06
|
||||||
+ Added "Ice Fishing" ability to Fishing
|
+ Added "Ice Fishing" ability to Fishing
|
||||||
|
@ -5,6 +5,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.datatypes.party.ItemShareType;
|
||||||
import org.bukkit.OfflinePlayer;
|
import org.bukkit.OfflinePlayer;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -415,6 +416,10 @@ public final class PartyManager {
|
|||||||
party.setXpShareMode(ShareMode.getShareMode(partiesFile.getString(partyName + ".ExpShareMode", "NONE")));
|
party.setXpShareMode(ShareMode.getShareMode(partiesFile.getString(partyName + ".ExpShareMode", "NONE")));
|
||||||
party.setItemShareMode(ShareMode.getShareMode(partiesFile.getString(partyName + ".ItemShareMode", "NONE")));
|
party.setItemShareMode(ShareMode.getShareMode(partiesFile.getString(partyName + ".ItemShareMode", "NONE")));
|
||||||
|
|
||||||
|
for (ItemShareType itemShareType : ItemShareType.values()) {
|
||||||
|
party.setSharingDrops(itemShareType, partiesFile.getBoolean(partyName + ".ItemShareType." + itemShareType.toString(), true));
|
||||||
|
}
|
||||||
|
|
||||||
List<String> memberNames = partiesFile.getStringList(partyName + ".Members");
|
List<String> memberNames = partiesFile.getStringList(partyName + ".Members");
|
||||||
LinkedHashSet<String> members = party.getMembers();
|
LinkedHashSet<String> members = party.getMembers();
|
||||||
|
|
||||||
@ -445,6 +450,10 @@ public final class PartyManager {
|
|||||||
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());
|
||||||
|
|
||||||
|
for (ItemShareType itemShareType : ItemShareType.values()) {
|
||||||
|
partiesFile.set(partyName + ".ItemShareType." + itemShareType.toString(), party.sharingDrops(itemShareType));
|
||||||
|
}
|
||||||
|
|
||||||
List<String> memberNames = new ArrayList<String>();
|
List<String> memberNames = new ArrayList<String>();
|
||||||
|
|
||||||
for (String member : party.getMembers()) {
|
for (String member : party.getMembers()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user