Skip to content

Commit

Permalink
Added back in area height
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Mar 13, 2023
1 parent 87fb333 commit a5a02f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/java/world/bentobox/boxed/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ public class Settings implements WorldSettings {
@ConfigComment("If the number of areas is greater than this number, it will stop players from joining the world.")
@ConfigEntry(path = "world.max-areas")
private int maxIslands = -1;

@ConfigComment("Area height - Lowest is 5.")
@ConfigComment("It is the y coordinate of the bedrock block in the blueprint.")
@ConfigEntry(path = "world.area-height")
private int islandHeight = 8;

@ConfigComment("The maximum number of players a player can ban at any one time in this game mode.")
@ConfigComment("The permission boxed.ban.maxlimit.X where X is a number can also be used per player")
Expand Down Expand Up @@ -532,7 +537,7 @@ public int getIslandZOffset() {
*/
@Override
public int getIslandHeight() {
return 5;
return islandHeight;
}

/**
Expand Down Expand Up @@ -1723,4 +1728,11 @@ public int getEndSeedZ() {
return 0;
}

/**
* @param islandHeight the islandHeight to set
*/
public void setIslandHeight(int islandHeight) {
this.islandHeight = islandHeight;
}

}
3 changes: 3 additions & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ world:
# If none of this makes sense, leave it at 0,0.
start-x: 0
start-z: 0
# Area height - Lowest is 5.
# It is the y coordinate of the bedrock block in the blueprint.
area-height: 8
# Maximum number of player areas in the world. Set to -1 or 0 for unlimited.
# If the number of areas is greater than this number, it will stop players from joining the world.
max-areas: -1
Expand Down

0 comments on commit a5a02f5

Please sign in to comment.