How to play sound for a specific player only?

Discussion in 'Plugin Development' started by Baba43, Mar 31, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Baba43

    Hi,

    i know how to play sounds that everyone can hear but what about sounds that can be heared just by a specific player?
     
  2. Offline

    ZeusAllMighty11

    playSound(Location, Sound, Volume, Pitch)

    If you play it at the player's location with player.playSound(player.getLocation()...) only they will hear it
     
    microgeek and Baba43 like this.
  3. Offline

    Baba43

    Thank you both for your help :)
     
  4. Offline

    microgeek

    If it's solved, be sure to mark the thread as solved(by choosing edit thread), so if anyone has the same issue, they can find a solved thread. =)
     
    glen3b likes this.
Thread Status:
Not open for further replies.

Share This Page