Skip to content

Commit

Permalink
Play sound when distance damage is done
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Jul 21, 2024
1 parent 3722ca1 commit 5ca149f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ public void onProjectileHit(ProjectileHitEvent event) {
}

player.damage(10000, projectile);
if (paintball.getHitSound() != null && projectile.getShooter() instanceof Player shooter) {
shooter.playSound(shooter.getLocation(), paintball.getHitSound(), 1, 1);
}
}
}

Expand Down

0 comments on commit 5ca149f

Please sign in to comment.