Add setting for team member islands

This commit is contained in:
tastybento 2024-04-06 09:02:40 -07:00
parent abbc9ab319
commit 1058b5fbc1
2 changed files with 20 additions and 1 deletions

View File

@ -59,7 +59,7 @@
<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. -->

View File

@ -201,6 +201,10 @@ public class AISettings implements WorldSettings {
@ConfigEntry(path = "world.island-height") @ConfigEntry(path = "world.island-height")
private int islandHeight = 50; private int islandHeight = 50;
@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.")
@ConfigEntry(path = "world.use-own-generator", experimental = true) @ConfigEntry(path = "world.use-own-generator", experimental = true)
@ -2081,4 +2085,19 @@ public class AISettings implements WorldSettings {
public void setMakeDecorations(boolean makeDecorations) { public void setMakeDecorations(boolean makeDecorations) {
this.makeDecorations = makeDecorations; this.makeDecorations = makeDecorations;
} }
/**
* @return the disallowTeamMemberIslands
*/
@Override
public boolean isDisallowTeamMemberIslands() {
return disallowTeamMemberIslands;
}
/**
* @param disallowTeamMemberIslands the disallowTeamMemberIslands to set
*/
public void setDisallowTeamMemberIslands(boolean disallowTeamMemberIslands) {
this.disallowTeamMemberIslands = disallowTeamMemberIslands;
}
} }