Skip to content

Commit 19179bc

Browse files
committed
Enable team members to have islands - requires Bentobox 2.3.0
1 parent e18e7b9 commit 19179bc

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@
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.0.0-SNAPSHOT</bentobox.version>
62+
<bentobox.version>2.3.0-SNAPSHOT</bentobox.version>
6363
<level.version>2.6.2</level.version>
6464
<bank.version>1.3.0</bank.version>
6565
<!-- Revision variable removes warning about dynamic version -->
6666
<revision>${build.version}-SNAPSHOT</revision>
6767
<!-- Do not change unless you want different name for local builds. -->
6868
<build.number>-LOCAL</build.number>
6969
<!-- This allows to change between versions. -->
70-
<build.version>1.16.0</build.version>
70+
<build.version>1.17.0</build.version>
7171
<!-- SonarCloud -->
7272
<sonar.projectKey>BentoBoxWorld_AOneBlock</sonar.projectKey>
7373
<sonar.organization>bentobox-world</sonar.organization>

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ public class Settings implements WorldSettings {
192192
@ConfigEntry(path = "world.island-height")
193193
private int islandHeight = 120;
194194

195+
@ConfigComment("Disallow team members from having their own islands.")
196+
@ConfigEntry(path = "world.disallow-team-member-islands")
197+
private boolean disallowTeamMemberIslands = false;
198+
195199
@ConfigComment("Use your own world generator for this world.")
196200
@ConfigComment("In this case, the plugin will not generate anything.")
197201
@ConfigComment("If used, you must specify the world name and generator in the bukkit.yml file.")
@@ -2176,4 +2180,19 @@ public String getClickType() {
21762180
public void setClickType(String clickType) {
21772181
this.clickType = clickType;
21782182
}
2183+
2184+
/**
2185+
* @return the disallowTeamMemberIslands
2186+
*/
2187+
@Override
2188+
public boolean isDisallowTeamMemberIslands() {
2189+
return disallowTeamMemberIslands;
2190+
}
2191+
2192+
/**
2193+
* @param disallowTeamMemberIslands the disallowTeamMemberIslands to set
2194+
*/
2195+
public void setDisallowTeamMemberIslands(boolean disallowTeamMemberIslands) {
2196+
this.disallowTeamMemberIslands = disallowTeamMemberIslands;
2197+
}
21792198
}

src/main/resources/addon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: AOneBlock
22
main: world.bentobox.aoneblock.AOneBlock
33
version: ${version}${build.number}
4-
api-version: 1.24
4+
api-version: 2.3.0
55
metrics: true
66
icon: "STONE"
77
repository: "BentoBoxWorld/AOneBlock"

src/main/resources/config.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ world:
6565
# Block identification appearance.
6666
# Click type that will make particles appear. Options are:
6767
# LEFT (default), RIGHT, or NONE
68-
click-type: RIGHT
69-
# Size of particles. Default is 0.7. Must be greater than 0.
68+
click-type: LEFT
69+
# Size of particles. Default is 0.5. Must be greater than 0.
7070
particle-size: 0.5
71-
# Density of particles - Value from 0.1 to 1. Default is 0.5. Smaller values are more dense, higher are less.
71+
# Density of particles - Value from 0.1 to 1. Default is 0.65. Smaller values are more dense, higher are less.
7272
particle-density: 0.65
7373
# Color of particles
7474
particle-color:
@@ -123,6 +123,8 @@ world:
123123
# Island height - Lowest is 5.
124124
# It is the y coordinate of the bedrock block in the schem.
125125
island-height: 80
126+
# Disallow team members from having their own islands.
127+
disallow-team-member-islands: false
126128
# Use your own world generator for this world.
127129
# In this case, the plugin will not generate anything.
128130
# If used, you must specify the world name and generator in the bukkit.yml file.
@@ -191,9 +193,9 @@ world:
191193
create-obsidian-platform: false
192194
# Mob white list - these mobs will NOT be removed when logging in or doing /island
193195
remove-mobs-whitelist:
194-
- ENDERMAN
195-
- ZOMBIE_VILLAGER
196196
- WITHER
197+
- ZOMBIE_VILLAGER
198+
- ENDERMAN
197199
# World flags. These are boolean settings for various flags for this world
198200
flags:
199201
CREEPER_DAMAGE: true

0 commit comments

Comments
 (0)