Sound Problem

Discussion in 'Spigot Plugin Help' started by ninpa, May 27, 2017.

  1. Hi, I am writing currently a Plugin for my own Server and I have a Problem.


    When I am entering a region it plays a sound via player.playsound.
    The Problem is that it overlapps with the current music, which played in the background.
    How can I stop the main ambient sound and then play my sound, without overlapping?
     
  2. I think not, because I think you can't get the backgroundmusic. You can turn off the backgroundmusic :D
     
  3. I already fixed it, thanks.

    For those, who wants it too.

    Deactivate background Music
    Code (Text):
    player.stopSound(Sound.MUSIC_GAME);


    Thread can be closed.