Skip to content

Commit 040b55c

Browse files
authored
Merge pull request #526 from BentoBoxWorld/develop
Version 1.18.1
2 parents 5660773 + c721de5 commit 040b55c

File tree

3 files changed

+46
-3
lines changed

3 files changed

+46
-3
lines changed

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
<powermock.version>2.0.9</powermock.version>
6060
<!-- More visible way how to change dependency versions -->
6161
<spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version>
62-
<bentobox.version>2.3.0-SNAPSHOT</bentobox.version>
62+
<bentobox.version>2.5.0-SNAPSHOT</bentobox.version>
6363
<!-- Revision variable removes warning about dynamic version -->
6464
<revision>${build.version}-SNAPSHOT</revision>
6565
<!-- Do not change unless you want different name for local builds. -->
6666
<build.number>-LOCAL</build.number>
6767
<!-- This allows to change between versions. -->
68-
<build.version>1.18.0</build.version>
68+
<build.version>1.18.1</build.version>
6969
<!-- Sonar Cloud -->
7070
<sonar.projectKey>BentoBoxWorld_BSkyBlock</sonar.projectKey>
7171
<sonar.organization>bentobox-world</sonar.organization>

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

+43
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import com.google.common.base.Enums;
1212

13+
import world.bentobox.bentobox.BentoBox;
1314
import world.bentobox.bentobox.api.configuration.ConfigComment;
1415
import world.bentobox.bentobox.api.configuration.ConfigEntry;
1516
import world.bentobox.bentobox.api.configuration.StoreAt;
@@ -135,6 +136,15 @@ public class Settings implements WorldSettings {
135136
@ConfigEntry(path = "world.max-islands")
136137
private int maxIslands = -1;
137138

139+
@ConfigComment("The number of concurrent islands a player can have in the world")
140+
@ConfigComment("A value of 0 will use the BentoBox config.yml default")
141+
@ConfigEntry(path = "world.concurrent-islands")
142+
private int concurrentIslands = 0;
143+
144+
@ConfigComment("Disallow players to have other islands if they are in a team.")
145+
@ConfigEntry(path = "world.disallow-team-member-islands")
146+
boolean disallowTeamMemberIslands = true;
147+
138148
@ConfigComment("The default game mode for this world. Players will be set to this mode when they create")
139149
@ConfigComment("a new island for example. Options are SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR")
140150
@ConfigEntry(path = "world.default-game-mode")
@@ -1817,4 +1827,37 @@ public void setMakeEndPortals(boolean makeEndPortals) {
18171827
this.makeEndPortals = makeEndPortals;
18181828
}
18191829

1830+
/**
1831+
* @return the concurrentIslands
1832+
*/
1833+
@Override
1834+
public int getConcurrentIslands() {
1835+
if (concurrentIslands <= 0) {
1836+
return BentoBox.getInstance().getSettings().getIslandNumber();
1837+
}
1838+
return concurrentIslands;
1839+
}
1840+
1841+
/**
1842+
* @param concurrentIslands the concurrentIslands to set
1843+
*/
1844+
public void setConcurrentIslands(int concurrentIslands) {
1845+
this.concurrentIslands = concurrentIslands;
1846+
}
1847+
1848+
/**
1849+
* @return the disallowTeamMemberIslands
1850+
*/
1851+
@Override
1852+
public boolean isDisallowTeamMemberIslands() {
1853+
return disallowTeamMemberIslands;
1854+
}
1855+
1856+
/**
1857+
* @param disallowTeamMemberIslands the disallowTeamMemberIslands to set
1858+
*/
1859+
public void setDisallowTeamMemberIslands(boolean disallowTeamMemberIslands) {
1860+
this.disallowTeamMemberIslands = disallowTeamMemberIslands;
1861+
}
1862+
18201863
}

src/main/resources/addon.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: BSkyBlock
22
main: world.bentobox.bskyblock.BSkyBlock
33
version: ${version}${build.number}
4-
api-version: 1.21.0
4+
api-version: 2.3.0
55
metrics: true
66
icon: "OAK_SAPLING"
77
repository: "BentoBoxWorld/BSkyBlock"

0 commit comments

Comments
 (0)