How can I play a jukebox sound at a player's location and let everyone hear it? does this work: player.playSound(name, x, y, z) also, where is there a reference of the sound names?
it works perfectly i use this in my plugin. now i choosed to play the sound blaze death. The bukkit is just so you could place it in voids to. Location location = event.getLcation(); String playername = event.getPlayer.getName(); Bukkit.getPlayer(playerName).getWorld().playSound(location,Sound.BLAZE_DEATH,1, 0);
thx what is the default volume and pitch? 0? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I don't know but here are some guesses * volumn 1F is "normal" (meaning 100 %) and pitch 1F too (maybe) * values below 0F and above 2F shouldn't make any difference ( in some cases something around 0.5 is already the min.) * this (especially the pitch value) can differ depending on the sound..