Add option to disable explosions in peaceful territory from #369.

This commit is contained in:
drtshock 2015-09-08 12:55:42 -05:00
parent 47bdb149ab
commit 11bd632b15
2 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ public class Conf {
public static boolean peacefulTerritoryDisablePVP = true;
public static boolean peacefulTerritoryDisableMonsters = false;
public static boolean peacefulTerritoryDisableBoom = false;
public static boolean peacefulMembersDisablePowerLoss = true;
public static boolean permanentFactionsDisableLeaderPromotion = false;

View File

@ -141,7 +141,7 @@ public class FactionsEntityListener implements Listener {
Entity boomer = event.getEntity();
Faction faction = Board.getInstance().getFactionAt(new FLocation(loc));
if (faction.noExplosionsInTerritory()) {
if (faction.noExplosionsInTerritory() || (faction.isPeaceful() && Conf.peacefulTerritoryDisableBoom)) {
// faction is peaceful and has explosions set to disabled
event.setCancelled(true);
return;