Allow Disabling Zombie Villager Aggression

Ability to configure if Zombies will be aggressive towards Villagers.

By: Dylan Xaldin <Puremin0rez515@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2013-12-12 18:05:03 -06:00
parent 3d4c222263
commit 0abc9c4cd1
2 changed files with 22 additions and 5 deletions

View File

@@ -255,4 +255,11 @@ public class SpigotWorldConfig
this.tridentDespawnRate = this.getInt( "trident-despawn-rate", this.arrowDespawnRate );
this.log( "Arrow Despawn Rate: " + this.arrowDespawnRate + " Trident Respawn Rate:" + this.tridentDespawnRate );
}
public boolean zombieAggressiveTowardsVillager;
private void zombieAggressiveTowardsVillager()
{
this.zombieAggressiveTowardsVillager = this.getBoolean( "zombie-aggressive-towards-villager", true );
this.log( "Zombie Aggressive Towards Villager: " + this.zombieAggressiveTowardsVillager );
}
}