From fad866cf333c40e2b8d93ad83230faa99eb335e8 Mon Sep 17 00:00:00 2001 From: Driftay Date: Sun, 29 Dec 2019 17:30:12 -0500 Subject: [PATCH] Fixed Bow Boosting --- .../massivecraft/factions/listeners/FactionsEntityListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsEntityListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsEntityListener.java index 753deb24..ea28d3bd 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsEntityListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsEntityListener.java @@ -682,6 +682,8 @@ public class FactionsEntityListener implements Listener { Player victim = (Player) e.getEntity(); FPlayer fdamager = FPlayers.getInstance().getByPlayer(damager); FPlayer fvictim = FPlayers.getInstance().getByPlayer(victim); + if(damager == victim) return; + if(fdamager == fvictim) return; if (fvictim.getRelationTo(fdamager) == Relation.TRUCE) { fdamager.msg(TL.PLAYER_PVP_CANTHURT, fvictim.describeTo(fdamager)); e.setCancelled(true);