h31ix

Untitled

Jul 16th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public void playSound(Location loc, Sound sound, float volume, float pitch) {
  2. playSound(loc, CraftSound.getSound(sound), volume, pitch);
  3. }
  4.  
  5. public void playSound(Location loc, String sound, float volume, float pitch) {
  6. if (loc == null || sound == null) return;
  7.  
  8. double x = loc.getX();
  9. double y = loc.getY();
  10. double z = loc.getZ();
  11.  
  12. getHandle().makeSound(x, y, z, sound, volume, pitch);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment