diff --git a/src/main/java/world/bentobox/skygrid/Settings.java b/src/main/java/world/bentobox/skygrid/Settings.java index 3808aaf..20e804b 100644 --- a/src/main/java/world/bentobox/skygrid/Settings.java +++ b/src/main/java/world/bentobox/skygrid/Settings.java @@ -147,6 +147,15 @@ public class Settings implements WorldSettings { @ConfigEntry(path = "world.skygrid-height") private int islandHeight = 128; + @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("End Frame height") @ConfigComment("This is the height where end frames will generate.") @ConfigEntry(path = "world.end-frame-height", since = "1.20.0") @@ -1642,4 +1651,32 @@ public int getEndFrameHeight() { public void setEndFrameHeight(int endFrameHeight) { this.endFrameHeight = endFrameHeight; } + + /** + * @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; + } } diff --git a/src/main/resources/addon.yml b/src/main/resources/addon.yml index 1f9b41e..66e2bdf 100755 --- a/src/main/resources/addon.yml +++ b/src/main/resources/addon.yml @@ -4,7 +4,7 @@ version: ${version}${build.number} metrics: true repository: "BentoBoxWorld/SkyGrid" icon: "COBWEB" -api-version: 1.21 +api-version: 2.4.1 authors: tastybento