Fixed Bow Boosting
This commit is contained in:
parent
c3319ce109
commit
fad866cf33
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user