mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-01 13:14:44 +02:00
Added toggle to disable party system
This commit is contained in:
@ -91,6 +91,8 @@ public class ConfigParty {
|
||||
return partyCombat.isPartyFriendlyFire();
|
||||
}
|
||||
|
||||
public boolean isPartySystemEnabled() { return partyGeneral.isEnablePartySystem(); }
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
@ -6,9 +6,15 @@ import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
@ConfigSerializable
|
||||
public class ConfigSectionPartyGeneral {
|
||||
|
||||
public static final boolean PARTY_SYSTEM_DEFAULT = true;
|
||||
|
||||
@Setting(value = "Party-Limitations")
|
||||
private ConfigSectionPartyLimit configSectionPartyLimit = new ConfigSectionPartyLimit();
|
||||
|
||||
@Setting(value = "Enable-Party-System", comment = "Turn this off to completely disable the mcMMO party system." +
|
||||
"\nDefault value: "+PARTY_SYSTEM_DEFAULT)
|
||||
private boolean enablePartySystem = PARTY_SYSTEM_DEFAULT;
|
||||
|
||||
public int getPartySizeLimit() {
|
||||
return configSectionPartyLimit.partyMaxSize;
|
||||
}
|
||||
@ -16,4 +22,8 @@ public class ConfigSectionPartyGeneral {
|
||||
public boolean isPartySizeCapped() {
|
||||
return configSectionPartyLimit.useCap;
|
||||
}
|
||||
|
||||
public boolean isEnablePartySystem() {
|
||||
return enablePartySystem;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user