diff --git a/pom.xml b/pom.xml
index 10298eb..75ffccb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,13 +59,13 @@
2.0.9
1.20.4-R0.1-SNAPSHOT
- 2.0.0-SNAPSHOT
+ 2.3.0-SNAPSHOT
${build.version}-SNAPSHOT
-LOCAL
- 1.17.1
+ 1.18.0
BentoBoxWorld_BSkyBlock
bentobox-world
diff --git a/src/main/java/world/bentobox/bskyblock/BSkyBlockPladdon.java b/src/main/java/world/bentobox/bskyblock/BSkyBlockPladdon.java
index 9e04af3..f5280e5 100644
--- a/src/main/java/world/bentobox/bskyblock/BSkyBlockPladdon.java
+++ b/src/main/java/world/bentobox/bskyblock/BSkyBlockPladdon.java
@@ -2,13 +2,19 @@
import world.bentobox.bentobox.api.addons.Addon;
+import world.bentobox.bentobox.api.addons.GameModeAddon;
import world.bentobox.bentobox.api.addons.Pladdon;
public class BSkyBlockPladdon extends Pladdon {
-
+
+ private GameModeAddon addon;
+
@Override
public Addon getAddon() {
- return new BSkyBlock();
+ if (addon == null) {
+ addon = new BSkyBlock();
+ }
+ return addon;
}
}
diff --git a/src/main/java/world/bentobox/bskyblock/Settings.java b/src/main/java/world/bentobox/bskyblock/Settings.java
index 324297a..5727956 100644
--- a/src/main/java/world/bentobox/bskyblock/Settings.java
+++ b/src/main/java/world/bentobox/bskyblock/Settings.java
@@ -116,6 +116,10 @@ public class Settings implements WorldSettings {
@ConfigEntry(path = "world.island-height")
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("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.")
@@ -1816,4 +1820,18 @@ public void setMakeNetherPortals(boolean makeNetherPortals) {
public void setMakeEndPortals(boolean 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;
+ }
}