Skip to content

Commit

Permalink
Add BentoBox API settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Aug 18, 2024
1 parent 367a3f9 commit 1147a91
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions src/main/java/world/bentobox/skygrid/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion src/main/resources/addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1147a91

Please sign in to comment.