* Blocks can't attack each other anymore.
This commit is contained in:
parent
a358876990
commit
a3cdc7b6cf
@ -33,9 +33,21 @@ public class OnEntityDamageByEntityEvent implements Listener {
|
||||
&& arena.seekers.contains(event.getDamager())) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
if (arena.playersInArena.contains(player)
|
||||
&& arena.playersInArena.contains(event
|
||||
.getDamager())
|
||||
&& !arena.seekers.contains(player)) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
player.playEffect(player.getLocation(), Effect.BOW_FIRE, 0);
|
||||
event.getDamager()
|
||||
.getLocation()
|
||||
.getWorld()
|
||||
.playEffect(event.getDamager().getLocation(),
|
||||
Effect.BOW_FIRE, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user