Added back in area height

This commit is contained in:
tastybento 2023-03-12 17:17:51 -07:00
parent 87fb333753
commit a5a02f5594
2 changed files with 16 additions and 1 deletions

View File

@ -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")
@ -532,7 +537,7 @@ public class Settings implements WorldSettings {
*/
@Override
public int getIslandHeight() {
return 5;
return islandHeight;
}
/**
@ -1723,4 +1728,11 @@ public class Settings implements WorldSettings {
return 0;
}
/**
* @param islandHeight the islandHeight to set
*/
public void setIslandHeight(int islandHeight) {
this.islandHeight = islandHeight;
}
}

View File

@ -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