Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void playSound(Location loc, Sound sound, float volume, float pitch) {
- playSound(loc, CraftSound.getSound(sound), volume, pitch);
- }
- public void playSound(Location loc, String sound, float volume, float pitch) {
- if (loc == null || sound == null) return;
- double x = loc.getX();
- double y = loc.getY();
- double z = loc.getZ();
- getHandle().makeSound(x, y, z, sound, volume, pitch);
- }
Advertisement
Add Comment
Please, Sign In to add comment