Bukkit Play Global Sounds (To All Players)

Discussion in 'Plugin Development' started by AwesomeMarioFan, Jan 21, 2014.

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

    AwesomeMarioFan

    Hey Guys,

    I did a bit of searching, but I could only find code which plays a sound in the player's location.
    I was custom editing a minigames plugin and would like it to broadcast the sound to the entire server instead of one specific location, would this be possible?

    If not, is there a way to broadcast the sound to all of the players at the same time?

    Thanks in Advance!.
    ~ Mario
     
  2. Offline

    xTrollxDudex

    _Cookie_ likes this.
  3. Offline

    TwoPointDuck

    for(Player p:Bukkit.getOnlinePlayers()){
    p.playSound(p.getlocation, etc.)
    }
     
Thread Status:
Not open for further replies.

Share This Page