mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-12-23 01:27:36 +01:00
Adds support for max coop and team sizes in config.yml
https://github.com/BentoBoxWorld/BentoBox/pull/1267
This commit is contained in:
parent
a01171f0ca
commit
2b4417f245
@ -319,6 +319,18 @@ public class AISettings implements WorldSettings {
|
||||
@ConfigEntry(path = "island.max-team-size")
|
||||
private int maxTeamSize = 4;
|
||||
|
||||
@ConfigComment("Default maximum number of coop rank members per island")
|
||||
@ConfigComment("Players can have the acidisland.coop.maxsize.<number> permission to be bigger but")
|
||||
@ConfigComment("permission size cannot be less than the default below. ")
|
||||
@ConfigEntry(path = "island.max-coop-size", since = "1.13.0")
|
||||
private int maxCoopSize = 4;
|
||||
|
||||
@ConfigComment("Default maximum number of trusted rank members per island")
|
||||
@ConfigComment("Players can have the acidisland.trust.maxsize.<number> permission to be bigger but")
|
||||
@ConfigComment("permission size cannot be less than the default below. ")
|
||||
@ConfigEntry(path = "island.max-trusted-size", since = "1.13.0")
|
||||
private int maxTrustSize = 4;
|
||||
|
||||
@ConfigComment("Default maximum number of homes a player can have. Min = 1")
|
||||
@ConfigComment("Accessed via /ai sethome <number> or /ai go <number>")
|
||||
@ConfigComment("Use this permission to set for specific user groups: acidisland.island.maxhomes.<number>")
|
||||
@ -1693,4 +1705,33 @@ public class AISettings implements WorldSettings {
|
||||
public void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns) {
|
||||
this.ticksPerMonsterSpawns = ticksPerMonsterSpawns;
|
||||
}
|
||||
/**
|
||||
* @return the maxCoopSize
|
||||
*/
|
||||
@Override
|
||||
public int getMaxCoopSize() {
|
||||
return maxCoopSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param maxCoopSize the maxCoopSize to set
|
||||
*/
|
||||
public void setMaxCoopSize(int maxCoopSize) {
|
||||
this.maxCoopSize = maxCoopSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the maxTrustSize
|
||||
*/
|
||||
@Override
|
||||
public int getMaxTrustSize() {
|
||||
return maxTrustSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param maxTrustSize the maxTrustSize to set
|
||||
*/
|
||||
public void setMaxTrustSize(int maxTrustSize) {
|
||||
this.maxTrustSize = maxTrustSize;
|
||||
}
|
||||
}
|
||||
|
@ -298,6 +298,16 @@ island:
|
||||
# Use this permission to set for specific user groups: acidisland.team.maxsize.<number>
|
||||
# Permission size cannot be less than the default below.
|
||||
max-team-size: 4
|
||||
# Default maximum number of coop rank members per island
|
||||
# Players can have the acidisland.coop.maxsize.<number> permission to be bigger but
|
||||
# permission size cannot be less than the default below.
|
||||
# Added since 1.13.0.
|
||||
max-coop-size: 4
|
||||
# Default maximum number of trusted rank members per island
|
||||
# Players can have the acidisland.trust.maxsize.<number> permission to be bigger but
|
||||
# permission size cannot be less than the default below.
|
||||
# Added since 1.13.0.
|
||||
max-trusted-size: 4
|
||||
# Default maximum number of homes a player can have. Min = 1
|
||||
# Accessed via /ai sethome <number> or /ai go <number>
|
||||
# Use this permission to set for specific user groups: acidisland.island.maxhomes.<number>
|
||||
|
Loading…
Reference in New Issue
Block a user