mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-14 19:44:42 +02:00
Wire up Party Config pt 1
This commit is contained in:
@ -49,6 +49,10 @@ public class ConfigParty {
|
||||
return partyGeneral;
|
||||
}
|
||||
|
||||
public ConfigSectionPartyXP getPartyXP() {
|
||||
return partyXP;
|
||||
}
|
||||
|
||||
public String getPartyChatPrefixFormat() {
|
||||
return partyChat.getPartyChatPrefixFormat();
|
||||
}
|
||||
|
@ -8,7 +8,9 @@ public class ConfigSectionPartyCombat {
|
||||
|
||||
public static final boolean PARTY_FRIENDLY_FIRE_DEFAULT = false;
|
||||
|
||||
@Setting(value = "Friendly-Fire", comment = "When friendly fire is enabled, players in the same party can injure each other.")
|
||||
@Setting(value = "Friendly-Fire", comment = "When friendly fire is enabled, players in the same party can injure each other." +
|
||||
"\nThis also allows Party alliances to hurt each other." +
|
||||
"\nDefault value: "+PARTY_FRIENDLY_FIRE_DEFAULT)
|
||||
private boolean partyFriendlyFire = PARTY_FRIENDLY_FIRE_DEFAULT;
|
||||
|
||||
public boolean isPartyFriendlyFire() {
|
||||
|
@ -33,4 +33,23 @@ public class ConfigSectionPartyLevel {
|
||||
@Setting(value = "Party-Feature-Unlock-Level-Requirements")
|
||||
private Map<PartyFeature, Integer> partyFeatureUnlockMap = PARTY_FEATURE_MAP_DEFAULT;
|
||||
|
||||
public static HashMap<PartyFeature, Integer> getPartyFeatureMapDefault() {
|
||||
return PARTY_FEATURE_MAP_DEFAULT;
|
||||
}
|
||||
|
||||
public int getPartyXpCurveMultiplier() {
|
||||
return partyXpCurveMultiplier;
|
||||
}
|
||||
|
||||
public boolean isPartyLevelingNeedsNearbyMembers() {
|
||||
return partyLevelingNeedsNearbyMembers;
|
||||
}
|
||||
|
||||
public boolean isInformPartyMembersOnLevelup() {
|
||||
return informPartyMembersOnLevelup;
|
||||
}
|
||||
|
||||
public Map<PartyFeature, Integer> getPartyFeatureUnlockMap() {
|
||||
return partyFeatureUnlockMap;
|
||||
}
|
||||
}
|
@ -23,4 +23,12 @@ public class ConfigSectionPartyXP {
|
||||
@Setting(value = "Party-Level", comment = "Parties in mcMMO gain levels just like skills" +
|
||||
"\nSettings related to that can be found here!.")
|
||||
private ConfigSectionPartyLevel partyLevel = new ConfigSectionPartyLevel();
|
||||
|
||||
public ConfigSectionPartyExperienceSharing getPartyExperienceSharing() {
|
||||
return partyExperienceSharing;
|
||||
}
|
||||
|
||||
public ConfigSectionPartyLevel getPartyLevel() {
|
||||
return partyLevel;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user