mirror of
https://github.com/BentoBoxWorld/BSkyBlock.git
synced 2025-01-14 20:01:20 +01:00
Adds coop and trust limits to config.yml
https://github.com/BentoBoxWorld/BentoBox/pull/1267
This commit is contained in:
parent
9342479e94
commit
8c9195c49c
2
pom.xml
2
pom.xml
@ -59,7 +59,7 @@
|
|||||||
<powermock.version>2.0.2</powermock.version>
|
<powermock.version>2.0.2</powermock.version>
|
||||||
<!-- More visible way how to change dependency versions -->
|
<!-- More visible way how to change dependency versions -->
|
||||||
<spigot.version>1.15.2-R0.1-SNAPSHOT</spigot.version>
|
<spigot.version>1.15.2-R0.1-SNAPSHOT</spigot.version>
|
||||||
<bentobox.version>1.12.0</bentobox.version>
|
<bentobox.version>1.13.0-SNAPSHOT</bentobox.version>
|
||||||
<!-- Revision variable removes warning about dynamic version -->
|
<!-- Revision variable removes warning about dynamic version -->
|
||||||
<revision>${build.version}-SNAPSHOT</revision>
|
<revision>${build.version}-SNAPSHOT</revision>
|
||||||
<!-- Do not change unless you want different name for local builds. -->
|
<!-- Do not change unless you want different name for local builds. -->
|
||||||
|
@ -224,6 +224,18 @@ public class Settings implements WorldSettings {
|
|||||||
@ConfigComment("Permission size cannot be less than the default below. ")
|
@ConfigComment("Permission size cannot be less than the default below. ")
|
||||||
@ConfigEntry(path = "island.max-team-size")
|
@ConfigEntry(path = "island.max-team-size")
|
||||||
private int maxTeamSize = 4;
|
private int maxTeamSize = 4;
|
||||||
|
|
||||||
|
@ConfigComment("Default maximum number of coop rank members per island")
|
||||||
|
@ConfigComment("Players can have the bskyblock.coop.maxsize.<number> permission to be bigger but")
|
||||||
|
@ConfigComment("permission size cannot be less than the default below. ")
|
||||||
|
@ConfigEntry(path = "island.max-coop-size", since = "1.13.0")
|
||||||
|
private int maxCoopSize = 4;
|
||||||
|
|
||||||
|
@ConfigComment("Default maximum number of trusted rank members per island")
|
||||||
|
@ConfigComment("Players can have the bskyblock.trust.maxsize.<number> permission to be bigger but")
|
||||||
|
@ConfigComment("permission size cannot be less than the default below. ")
|
||||||
|
@ConfigEntry(path = "island.max-trusted-size", since = "1.13.0")
|
||||||
|
private int maxTrustSize = 4;
|
||||||
|
|
||||||
@ConfigComment("Default maximum number of homes a player can have. Min = 1")
|
@ConfigComment("Default maximum number of homes a player can have. Min = 1")
|
||||||
@ConfigComment("Accessed via /is sethome <number> or /is go <number>")
|
@ConfigComment("Accessed via /is sethome <number> or /is go <number>")
|
||||||
@ -1566,4 +1578,34 @@ public class Settings implements WorldSettings {
|
|||||||
public void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns) {
|
public void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns) {
|
||||||
this.ticksPerMonsterSpawns = ticksPerMonsterSpawns;
|
this.ticksPerMonsterSpawns = ticksPerMonsterSpawns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the maxCoopSize
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int getMaxCoopSize() {
|
||||||
|
return maxCoopSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param maxCoopSize the maxCoopSize to set
|
||||||
|
*/
|
||||||
|
public void setMaxCoopSize(int maxCoopSize) {
|
||||||
|
this.maxCoopSize = maxCoopSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the maxTrustSize
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int getMaxTrustSize() {
|
||||||
|
return maxTrustSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param maxTrustSize the maxTrustSize to set
|
||||||
|
*/
|
||||||
|
public void setMaxTrustSize(int maxTrustSize) {
|
||||||
|
this.maxTrustSize = maxTrustSize;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -222,6 +222,17 @@ island:
|
|||||||
# Default max team size
|
# Default max team size
|
||||||
# Permission size cannot be less than the default below.
|
# Permission size cannot be less than the default below.
|
||||||
max-team-size: 4
|
max-team-size: 4
|
||||||
|
# Default maximum number of coop rank members per island
|
||||||
|
# Players can have the bskyblock.coop.maxsize.<number> permission to be bigger but
|
||||||
|
# permission size cannot be less than the default below.
|
||||||
|
# Added since 1.13.0.
|
||||||
|
max-coop-size: 4
|
||||||
|
# Default maximum number of trusted rank members per island
|
||||||
|
# Players can have the bskyblock.trust.maxsize.<number> permission to be bigger but
|
||||||
|
# permission size cannot be less than the default below.
|
||||||
|
# Added since 1.13.0.
|
||||||
|
max-trusted-size: 4
|
||||||
|
|
||||||
# Default maximum number of homes a player can have. Min = 1
|
# Default maximum number of homes a player can have. Min = 1
|
||||||
# Accessed via /is sethome <number> or /is go <number>
|
# Accessed via /is sethome <number> or /is go <number>
|
||||||
max-homes: 1
|
max-homes: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user