diff --git a/pom.xml b/pom.xml
index 1a2d992..b7f84b7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
world.bentobox
bskyblock
- 1.5.3-SNAPSHOT
+ 1.6.0-SNAPSHOT
BSkyBlock
BSkyBlock is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like SkyBlock or AcidIsland.
@@ -53,9 +53,13 @@
https://hub.spigotmc.org/nexus/content/repositories/snapshots
- codemc-repo
- https://repo.codemc.org/repository/maven-public
-
+ codemc
+ https://repo.codemc.org/repository/maven-snapshots/
+
+
+ codemc-repo
+ https://repo.codemc.org/repository/maven-public/
+
@@ -91,7 +95,7 @@
world.bentobox
bentobox
- 1.5.3-SNAPSHOT
+ 1.6.0-SNAPSHOT
provided
diff --git a/src/main/java/world/bentobox/bskyblock/BSkyBlock.java b/src/main/java/world/bentobox/bskyblock/BSkyBlock.java
index d2c7a79..1e61a41 100644
--- a/src/main/java/world/bentobox/bskyblock/BSkyBlock.java
+++ b/src/main/java/world/bentobox/bskyblock/BSkyBlock.java
@@ -1,11 +1,12 @@
package world.bentobox.bskyblock;
+import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.World.Environment;
import org.bukkit.WorldCreator;
import org.bukkit.WorldType;
import org.bukkit.generator.ChunkGenerator;
-import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
import world.bentobox.bentobox.api.addons.GameModeAddon;
import world.bentobox.bentobox.api.configuration.Config;
@@ -85,6 +86,15 @@ public class BSkyBlock extends GameModeAddon {
// Create the world if it does not exist
islandWorld = getWorld(worldName, World.Environment.NORMAL, chunkGenerator);
+ Bukkit.getLogger().info("World spawn limits ambient " + islandWorld.getAmbientSpawnLimit());
+ //islandWorld.setAnimalSpawnLimit(100);
+ //islandWorld.setAmbientSpawnLimit(100);
+ Bukkit.getLogger().info("World spawn limits animal " + islandWorld.getAnimalSpawnLimit());
+ Bukkit.getLogger().info("World spawn limits monster " + islandWorld.getMonsterSpawnLimit());
+ Bukkit.getLogger().info("World spawn limits water " + islandWorld.getWaterAnimalSpawnLimit());
+ //islandWorld.setTicksPerAnimalSpawns(1);
+ Bukkit.getLogger().info("World spawn limits ticks per animal " + islandWorld.getTicksPerAnimalSpawns());
+ Bukkit.getLogger().info("World spawn limits ticks per monster " + islandWorld.getTicksPerMonsterSpawns());
// Make the nether if it does not exist
if (settings.isNetherGenerate()) {
@@ -123,7 +133,7 @@ public class BSkyBlock extends GameModeAddon {
}
@Override
- public @NonNull ChunkGenerator getDefaultWorldGenerator(String worldName, String id) {
+ public @Nullable ChunkGenerator getDefaultWorldGenerator(String worldName, String id) {
return chunkGenerator;
}
diff --git a/src/main/java/world/bentobox/bskyblock/Settings.java b/src/main/java/world/bentobox/bskyblock/Settings.java
index 1bc544d..e0e995b 100644
--- a/src/main/java/world/bentobox/bskyblock/Settings.java
+++ b/src/main/java/world/bentobox/bskyblock/Settings.java
@@ -285,6 +285,10 @@ public class Settings implements WorldSettings {
@ConfigEntry(path = "island.deaths.team-join-reset")
private boolean teamJoinDeathReset = true;
+ @ConfigComment("Reset player death count when they start a new island or reset and island")
+ @ConfigEntry(path = "island.deaths.reset-on-new")
+ private boolean deathsResetOnNew = true;
+
// ---------------------------------------------
/* PROTECTION */
@@ -1120,4 +1124,19 @@ public class Settings implements WorldSettings {
{
this.adminCommand = adminCommand;
}
+
+ /**
+ * @return the deathsResetOnNew
+ */
+ @Override
+ public boolean isDeathsResetOnNew() {
+ return deathsResetOnNew;
+ }
+
+ /**
+ * @param deathsResetOnNew the deathsResetOnNew to set
+ */
+ public void setDeathsResetOnNew(boolean deathsResetOnNew) {
+ this.deathsResetOnNew = deathsResetOnNew;
+ }
}
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index 26aedd3..ebc1435 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -241,6 +241,8 @@ island:
max: 10
# When a player joins a team, reset their death count
team-join-reset: true
+ # Reset player death count when they start a new island or reset and island
+ reset-on-new: false
protection:
# Geo restrict mobs.
# Mobs that exit the island space where they were spawned will be removed.