0

add EffectsHelper

This commit is contained in:
2021-01-02 02:44:23 +03:00
parent 001cc6d2ce
commit 5514753f31

View File

@@ -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);
}
}