@@ -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}
0 commit comments