Search code examples
javaaudiobukkit

Spigot/Bukkit - Play own sound/music - Java


how can I play a custom sound/music for a specified Player or in a specified region? I know how to play a minecraft Sound (Player.playSound(Player.getLocation(), Sound.*sound*, 1.0f, 1.0f), but is there a way to play a Sound/music from a .ogg File?

Thank you for your help and sorry for my bad English ;)


Solution

  • Minecraft servers can't stream music to clients. Your only solution is to use note blocks and midi files