From cf7fcf6a14072c3b3be3e5a7213154505e43a855 Mon Sep 17 00:00:00 2001 From: heyxmirko Date: Sun, 5 May 2024 08:25:30 +0200 Subject: [PATCH] feat: Add blast sound on firework explosion --- pom.xml | 2 +- .../me/lukyn76/imagefireworkspro/core/ImageFirework.java | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 5f078d5..54bb9fb 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.lukyn76 ImageFireworksPro - 1.1.0 + 1.1.1 jar ImageFireworksPro diff --git a/src/main/java/me/lukyn76/imagefireworkspro/core/ImageFirework.java b/src/main/java/me/lukyn76/imagefireworkspro/core/ImageFirework.java index 8dec988..6d1785c 100644 --- a/src/main/java/me/lukyn76/imagefireworkspro/core/ImageFirework.java +++ b/src/main/java/me/lukyn76/imagefireworkspro/core/ImageFirework.java @@ -1,10 +1,7 @@ package me.lukyn76.imagefireworkspro.core; import me.lukyn76.imagefireworkspro.ImageFireworksPro; -import org.bukkit.Bukkit; -import org.bukkit.Color; -import org.bukkit.Location; -import org.bukkit.Particle; +import org.bukkit.*; import org.bukkit.scheduler.BukkitTask; import javax.imageio.ImageIO; @@ -45,6 +42,7 @@ public void setCustomModelData(int customModelData) { } public void explode(Location location, double yawRotation) throws IOException { + location.getWorld().playSound(location, Sound.ENTITY_FIREWORK_ROCKET_BLAST_FAR, 10F, 1F); displayImage(location, yawRotation); }