tastybento 2020-01-27 16:53:32 -08:00
parent b0c6499bf7
commit 601f7ced33
2 changed files with 21 additions and 1 deletions

View File

@ -59,7 +59,7 @@
<powermock.version>2.0.2</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.14.4-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.9.0-SNAPSHOT</bentobox.version>
<bentobox.version>1.11.1-SNAPSHOT</bentobox.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- Do not change unless you want different name for local builds. -->

View File

@ -374,6 +374,11 @@ public class Settings implements WorldSettings {
@ConfigEntry(path = "protection.geo-limit-settings")
private List<String> geoLimitSettings = new ArrayList<>();
@ConfigComment("Restricted mobs.")
@ConfigComment("Mobs that should never be spawned in the game.")
@ConfigEntry(path = "protection.mob-limit-settings")
private List<String> mobLimitSettings = new ArrayList<>();
// Invincible visitor settings
@ConfigComment("Invincible visitors. List of damages that will not affect visitors.")
@ConfigComment("Make list blank if visitors should receive all damages")
@ -796,6 +801,14 @@ public class Settings implements WorldSettings {
public List<String> getGeoLimitSettings() {
return geoLimitSettings;
}
/**
* @return the geoLimitSettings
*/
@Override
public List<String> getMobLimitSettings() {
return mobLimitSettings;
}
/**
* @return the ivSettings
@ -1138,6 +1151,13 @@ public class Settings implements WorldSettings {
public void setGeoLimitSettings(List<String> geoLimitSettings) {
this.geoLimitSettings = geoLimitSettings;
}
/**
* @param mobLimitSettings the mobLimitSettings to set
*/
public void setMobLimitSettings(List<String> mobLimitSettings) {
this.mobLimitSettings = mobLimitSettings;
}
/**
* @param ivSettings the ivSettings to set