Skip to content

Commit a270911

Browse files
committed
Add BentoBox config
BentoBoxWorld/BentoBox#2470
1 parent b64e247 commit a270911

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

src/main/java/world/bentobox/boxed/Settings.java

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ public class Settings implements WorldSettings {
133133
@ConfigEntry(path = "world.max-areas")
134134
private int maxIslands = -1;
135135

136+
@ConfigComment("The number of concurrent areas a player can have")
137+
@ConfigComment("A value of 0 will use the BentoBox config.yml default")
138+
@ConfigEntry(path = "world.concurrent-area")
139+
private int concurrentIslands = 0;
140+
141+
@ConfigComment("Disallow team members from having their own area.")
142+
@ConfigEntry(path = "world.disallow-team-member-areas")
143+
private boolean disallowTeamMemberIslands = true;
144+
136145
@ConfigComment("Area height")
137146
@ConfigComment("It is the y coordinate of the bedrock block in the blueprint.")
138147
@ConfigEntry(path = "world.area-height")
@@ -1761,4 +1770,32 @@ public void setIgnoreAdvancements(boolean ignoreAdvancements) {
17611770
this.ignoreAdvancements = ignoreAdvancements;
17621771
}
17631772

1773+
/**
1774+
* @return the concurrentIslands
1775+
*/
1776+
public int getConcurrentIslands() {
1777+
return concurrentIslands;
1778+
}
1779+
1780+
/**
1781+
* @param concurrentIslands the concurrentIslands to set
1782+
*/
1783+
public void setConcurrentIslands(int concurrentIslands) {
1784+
this.concurrentIslands = concurrentIslands;
1785+
}
1786+
1787+
/**
1788+
* @return the disallowTeamMemberIslands
1789+
*/
1790+
public boolean isDisallowTeamMemberIslands() {
1791+
return disallowTeamMemberIslands;
1792+
}
1793+
1794+
/**
1795+
* @param disallowTeamMemberIslands the disallowTeamMemberIslands to set
1796+
*/
1797+
public void setDisallowTeamMemberIslands(boolean disallowTeamMemberIslands) {
1798+
this.disallowTeamMemberIslands = disallowTeamMemberIslands;
1799+
}
1800+
17641801
}

src/main/resources/addon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Boxed
22
main: world.bentobox.boxed.Boxed
33
version: ${version}${build.number}
4-
api-version: 1.24
4+
api-version: 2.5.0
55
metrics: true
66
icon: "COMPOSTER"
77
repository: "BentoBoxWorld/Boxed"

0 commit comments

Comments
 (0)