Skip to content

Commit 27d8b29

Browse files
authored
Merge pull request #408 from BentoBoxWorld/develop
Release 1.18.0
2 parents bac04f0 + 55ac3d6 commit 27d8b29

19 files changed

+1132
-920
lines changed

pom.xml

+9-9
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,9 @@
4141
</issueManagement>
4242

4343
<distributionManagement>
44-
<snapshotRepository>
45-
<id>codemc-snapshots</id>
46-
<url>https://repo.codemc.org/repository/maven-snapshots</url>
47-
</snapshotRepository>
4844
<repository>
49-
<id>codemc-releases</id>
50-
<url>https://repo.codemc.org/repository/maven-releases</url>
45+
<id>bentoboxworld</id>
46+
<url>https://repo.codemc.org/repository/bentoboxworld/</url>
5147
</repository>
5248
</distributionManagement>
5349

@@ -58,16 +54,16 @@
5854
<!-- Non-minecraft related dependencies -->
5955
<powermock.version>2.0.9</powermock.version>
6056
<!-- More visible way how to change dependency versions -->
61-
<spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version>
62-
<bentobox.version>2.3.0-SNAPSHOT</bentobox.version>
57+
<spigot.version>1.21.3-R0.1-SNAPSHOT</spigot.version>
58+
<bentobox.version>2.7.1-SNAPSHOT</bentobox.version>
6359
<level.version>2.6.2</level.version>
6460
<bank.version>1.3.0</bank.version>
6561
<!-- Revision variable removes warning about dynamic version -->
6662
<revision>${build.version}-SNAPSHOT</revision>
6763
<!-- Do not change unless you want different name for local builds. -->
6864
<build.number>-LOCAL</build.number>
6965
<!-- This allows to change between versions. -->
70-
<build.version>1.17.0</build.version>
66+
<build.version>1.18.0</build.version>
7167
<!-- SonarCloud -->
7268
<sonar.projectKey>BentoBoxWorld_AOneBlock</sonar.projectKey>
7369
<sonar.organization>bentobox-world</sonar.organization>
@@ -133,6 +129,10 @@
133129
<id>minecraft-repo</id>
134130
<url>https://libraries.minecraft.net/</url>
135131
</repository>
132+
<repository>
133+
<id>bentoboxworld</id>
134+
<url>https://repo.codemc.org/repository/bentoboxworld/</url>
135+
</repository>
136136
<repository>
137137
<id>codemc</id>
138138
<url>https://repo.codemc.org/repository/maven-snapshots/</url>

src/main/java/world/bentobox/aoneblock/Settings.java

+32-9
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
import org.bukkit.block.Biome;
1515
import org.bukkit.entity.EntityType;
1616

17-
import com.google.common.base.Enums;
18-
1917
import world.bentobox.aoneblock.listeners.BlockListener;
18+
import world.bentobox.bentobox.BentoBox;
2019
import world.bentobox.bentobox.api.configuration.ConfigComment;
2120
import world.bentobox.bentobox.api.configuration.ConfigEntry;
2221
import world.bentobox.bentobox.api.configuration.StoreAt;
@@ -196,9 +195,14 @@ public class Settings implements WorldSettings {
196195
@ConfigEntry(path = "world.island-height")
197196
private int islandHeight = 120;
198197

198+
@ConfigComment("The number of concurrent islands a player can have in the world")
199+
@ConfigComment("A value of 0 will use the BentoBox config.yml default")
200+
@ConfigEntry(path = "world.concurrent-islands")
201+
private int concurrentIslands = 0;
202+
199203
@ConfigComment("Disallow team members from having their own islands.")
200204
@ConfigEntry(path = "world.disallow-team-member-islands")
201-
private boolean disallowTeamMemberIslands = false;
205+
private boolean disallowTeamMemberIslands = true;
202206

203207
@ConfigComment("Use your own world generator for this world.")
204208
@ConfigComment("In this case, the plugin will not generate anything.")
@@ -226,13 +230,13 @@ public class Settings implements WorldSettings {
226230

227231
@ConfigComment("The default biome for the overworld")
228232
@ConfigEntry(path = "world.default-biome")
229-
private Biome defaultBiome = Biome.PLAINS;
233+
private Biome defaultBiome;
230234
@ConfigComment("The default biome for the nether world (this may affect what mobs can spawn)")
231235
@ConfigEntry(path = "world.default-nether-biome")
232-
private Biome defaultNetherBiome = Enums.getIfPresent(Biome.class, "NETHER").or(Enums.getIfPresent(Biome.class, "NETHER_WASTES").or(Biome.BADLANDS));
236+
private Biome defaultNetherBiome;
233237
@ConfigComment("The default biome for the end world (this may affect what mobs can spawn)")
234238
@ConfigEntry(path = "world.default-end-biome")
235-
private Biome defaultEndBiome = Biome.THE_END;
239+
private Biome defaultEndBiome;
236240

237241
@ConfigComment("The maximum number of players a player can ban at any one time in this game mode.")
238242
@ConfigComment("The permission acidisland.ban.maxlimit.X where X is a number can also be used per player")
@@ -1440,7 +1444,7 @@ public boolean isWaterUnsafe() {
14401444
* @return default biome
14411445
*/
14421446
public Biome getDefaultBiome() {
1443-
return defaultBiome;
1447+
return defaultBiome == null ? Biome.PLAINS : defaultBiome;
14441448
}
14451449

14461450
/**
@@ -1885,7 +1889,7 @@ public void setDropOnTop(boolean dropOnTop) {
18851889
* @return the defaultNetherBiome
18861890
*/
18871891
public Biome getDefaultNetherBiome() {
1888-
return defaultNetherBiome;
1892+
return defaultNetherBiome == null ? Biome.NETHER_WASTES : defaultNetherBiome;
18891893
}
18901894

18911895
/**
@@ -1899,7 +1903,7 @@ public void setDefaultNetherBiome(Biome defaultNetherBiome) {
18991903
* @return the defaultEndBiome
19001904
*/
19011905
public Biome getDefaultEndBiome() {
1902-
return defaultEndBiome;
1906+
return defaultEndBiome == null ? Biome.THE_END : defaultEndBiome;
19031907
}
19041908

19051909
/**
@@ -2213,4 +2217,23 @@ public String getOffset() {
22132217
public void setOffset(String offset) {
22142218
this.offset = offset;
22152219
}
2220+
2221+
/**
2222+
* @return the concurrentIslands
2223+
*/
2224+
@Override
2225+
public int getConcurrentIslands() {
2226+
if (concurrentIslands <= 0) {
2227+
return BentoBox.getInstance().getSettings().getIslandNumber();
2228+
}
2229+
return concurrentIslands;
2230+
}
2231+
2232+
/**
2233+
* @param concurrentIslands the concurrentIslands to set
2234+
*/
2235+
public void setConcurrentIslands(int concurrentIslands) {
2236+
this.concurrentIslands = concurrentIslands;
2237+
}
2238+
22162239
}

src/main/java/world/bentobox/aoneblock/commands/island/IslandRespawnBlockCommand.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ else if (Material.BEDROCK.equals(island.getCenter().getBlock().getType()) ||
8787
for (double x = 0.0; x <= 1.0; x += 0.5) {
8888
for (double y = 0.0; y <= 1.0; y += 0.5) {
8989
for (double z = 0.0; z < 1.0; z += 0.5) {
90-
island.getWorld().spawnParticle(Particle.REDSTONE, island.getCenter().add(new Vector(x, y, z)),
90+
island.getWorld().spawnParticle(Particle.DUST, island.getCenter().add(new Vector(x, y, z)),
9191
5, 0.1, 0, 0.1, 1, new Particle.DustOptions(BlockProtect.GREEN, 1));
9292
}
9393
}

0 commit comments

Comments
 (0)