diff --git a/src/main/java/ghast/EffectsHelper.java b/src/main/java/ghast/EffectsHelper.java new file mode 100644 index 0000000..15e21ba --- /dev/null +++ b/src/main/java/ghast/EffectsHelper.java @@ -0,0 +1,16 @@ +package ghast; + +import lombok.experimental.UtilityClass; +import org.bukkit.Location; +import org.bukkit.Sound; +import org.bukkit.SoundCategory; + +@UtilityClass +@SuppressWarnings("unused") +public class EffectsHelper { + + public void playSound(Location location, Sound sound, float pitch) { + location.getWorld().playSound(location, sound, SoundCategory.MASTER, 1.0f, pitch); + } +} +