Add BentoBox config

https://github.com/BentoBoxWorld/BentoBox/issues/2470
This commit is contained in:
tastybento 2024-08-18 16:07:52 -07:00
parent b64e247a96
commit a2709110a6
2 changed files with 38 additions and 1 deletions

View File

@ -133,6 +133,15 @@ public class Settings implements WorldSettings {
@ConfigEntry(path = "world.max-areas")
private int maxIslands = -1;
@ConfigComment("The number of concurrent areas a player can have")
@ConfigComment("A value of 0 will use the BentoBox config.yml default")
@ConfigEntry(path = "world.concurrent-area")
private int concurrentIslands = 0;
@ConfigComment("Disallow team members from having their own area.")
@ConfigEntry(path = "world.disallow-team-member-areas")
private boolean disallowTeamMemberIslands = true;
@ConfigComment("Area height")
@ConfigComment("It is the y coordinate of the bedrock block in the blueprint.")
@ConfigEntry(path = "world.area-height")
@ -1761,4 +1770,32 @@ public class Settings implements WorldSettings {
this.ignoreAdvancements = ignoreAdvancements;
}
/**
* @return the concurrentIslands
*/
public int getConcurrentIslands() {
return concurrentIslands;
}
/**
* @param concurrentIslands the concurrentIslands to set
*/
public void setConcurrentIslands(int concurrentIslands) {
this.concurrentIslands = concurrentIslands;
}
/**
* @return the disallowTeamMemberIslands
*/
public boolean isDisallowTeamMemberIslands() {
return disallowTeamMemberIslands;
}
/**
* @param disallowTeamMemberIslands the disallowTeamMemberIslands to set
*/
public void setDisallowTeamMemberIslands(boolean disallowTeamMemberIslands) {
this.disallowTeamMemberIslands = disallowTeamMemberIslands;
}
}

View File

@ -1,7 +1,7 @@
name: Boxed
main: world.bentobox.boxed.Boxed
version: ${version}${build.number}
api-version: 1.24
api-version: 2.5.0
metrics: true
icon: "COMPOSTER"
repository: "BentoBoxWorld/Boxed"