Fixed Bow Boosting

This commit is contained in:
Driftay 2019-12-29 17:30:12 -05:00
parent c3319ce109
commit fad866cf33

View File

@ -682,6 +682,8 @@ public class FactionsEntityListener implements Listener {
Player victim = (Player) e.getEntity(); Player victim = (Player) e.getEntity();
FPlayer fdamager = FPlayers.getInstance().getByPlayer(damager); FPlayer fdamager = FPlayers.getInstance().getByPlayer(damager);
FPlayer fvictim = FPlayers.getInstance().getByPlayer(victim); FPlayer fvictim = FPlayers.getInstance().getByPlayer(victim);
if(damager == victim) return;
if(fdamager == fvictim) return;
if (fvictim.getRelationTo(fdamager) == Relation.TRUCE) { if (fvictim.getRelationTo(fdamager) == Relation.TRUCE) {
fdamager.msg(TL.PLAYER_PVP_CANTHURT, fvictim.describeTo(fdamager)); fdamager.msg(TL.PLAYER_PVP_CANTHURT, fvictim.describeTo(fdamager));
e.setCancelled(true); e.setCancelled(true);