Enable team members to have islands - requires Bentobox 2.3.0

This commit is contained in:
tastybento 2024-04-06 09:32:06 -07:00
parent 706178d3d5
commit d272873410
2 changed files with 20 additions and 2 deletions

View File

@ -59,13 +59,13 @@
<powermock.version>2.0.9</powermock.version> <powermock.version>2.0.9</powermock.version>
<!-- More visible way how to change dependency versions --> <!-- More visible way how to change dependency versions -->
<spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version> <spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>2.0.0-SNAPSHOT</bentobox.version> <bentobox.version>2.3.0-SNAPSHOT</bentobox.version>
<!-- Revision variable removes warning about dynamic version --> <!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision> <revision>${build.version}-SNAPSHOT</revision>
<!-- Do not change unless you want different name for local builds. --> <!-- Do not change unless you want different name for local builds. -->
<build.number>-LOCAL</build.number> <build.number>-LOCAL</build.number>
<!-- This allows to change between versions. --> <!-- This allows to change between versions. -->
<build.version>1.17.1</build.version> <build.version>1.18.0</build.version>
<!-- Sonar Cloud --> <!-- Sonar Cloud -->
<sonar.projectKey>BentoBoxWorld_BSkyBlock</sonar.projectKey> <sonar.projectKey>BentoBoxWorld_BSkyBlock</sonar.projectKey>
<sonar.organization>bentobox-world</sonar.organization> <sonar.organization>bentobox-world</sonar.organization>

View File

@ -116,6 +116,10 @@ public class Settings implements WorldSettings {
@ConfigEntry(path = "world.island-height") @ConfigEntry(path = "world.island-height")
private int islandHeight = 120; private int islandHeight = 120;
@ConfigComment("Disallow team members from having their own islands.")
@ConfigEntry(path = "world.disallow-team-member-islands")
private boolean disallowTeamMemberIslands = false;
@ConfigComment("Use your own world generator for this world.") @ConfigComment("Use your own world generator for this world.")
@ConfigComment("In this case, the plugin will not generate anything.") @ConfigComment("In this case, the plugin will not generate anything.")
@ConfigComment("If used, you must specify the world name and generator in the bukkit.yml file.") @ConfigComment("If used, you must specify the world name and generator in the bukkit.yml file.")
@ -1816,4 +1820,18 @@ public class Settings implements WorldSettings {
public void setMakeEndPortals(boolean makeEndPortals) { public void setMakeEndPortals(boolean makeEndPortals) {
this.makeEndPortals = makeEndPortals; this.makeEndPortals = makeEndPortals;
} }
/**
* @return the disallowTeamMemberIslands
*/
public boolean isDisallowTeamMemberIslands() {
return disallowTeamMemberIslands;
}
/**
* @param disallowTeamMemberIslands the disallowTeamMemberIslands to set
*/
public void setDisallowTeamMemberIslands(boolean disallowTeamMemberIslands) {
this.disallowTeamMemberIslands = disallowTeamMemberIslands;
}
} }