"worldsIgnorePvP" setting no longer ignores PvP damage in SafeZones and PvP damage done by players who just logged in, no matter the world it happens in
This commit is contained in:
parent
225471e530
commit
3ed879ca18
@ -235,10 +235,6 @@ public class FactionsEntityListener implements Listener
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
Location defenderLoc = defender.getPlayer().getLocation();
|
Location defenderLoc = defender.getPlayer().getLocation();
|
||||||
|
|
||||||
if (Conf.worldsIgnorePvP.contains(defenderLoc.getWorld().getName()))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
Faction defLocFaction = Board.getFactionAt(new FLocation(defenderLoc));
|
Faction defLocFaction = Board.getFactionAt(new FLocation(defenderLoc));
|
||||||
|
|
||||||
// for damage caused by projectiles, getDamager() returns the projectile... what we need to know is the source
|
// for damage caused by projectiles, getDamager() returns the projectile... what we need to know is the source
|
||||||
@ -281,7 +277,11 @@ public class FactionsEntityListener implements Listener
|
|||||||
attacker.msg("<i>You can't hurt other players while you are in "+(locFaction.isSafeZone() ? "a SafeZone." : "peaceful territory."));
|
attacker.msg("<i>You can't hurt other players while you are in "+(locFaction.isSafeZone() ? "a SafeZone." : "peaceful territory."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (locFaction.isWarZone() && Conf.warZoneFriendlyFire)
|
|
||||||
|
if (locFaction.isWarZone() && Conf.warZoneFriendlyFire)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
if (Conf.worldsIgnorePvP.contains(defenderLoc.getWorld().getName()))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
Faction defendFaction = defender.getFaction();
|
Faction defendFaction = defender.getFaction();
|
||||||
|
Loading…
Reference in New Issue
Block a user