So I'm trying to create a minecraft plugin using the spigot api and i'm having lots of fun! I'm trying to make a /play command that plays a music disc to the player. I've come across a problem with trying to play the music to the player. I'm using this: player.playSound(player.getLocation(), Sound.MUSIC_DISC_PIGSTEP, 500.0f, 1.0f);
this works great, but for some reason, the music stops playing when I enter a new dimension such as the nether. Is there any way to stop this? Or is there a work around to this? Thank you guys for all your help!
(I'm 13 and really new to Java, sorry if its really obvious)