HomeJavaModsMusicPlay
MusicPlay
ModsJava

MusicPlay

by Lolovilka86 · on Modrinth

MusicPlay turns your Minecraft server into a fully-featured music platform. Upload OGG/MP3 tracks, manage personal playlists, and enjoy auto-switching…

⬇ Download on Modrinth

🎵 MusicPlay — Custom Music Player for Your Server

MusicPlay is a fully-featured, server-side music player plugin for Paper/Spigot servers. Upload your own .ogg tracks, serve them through a built-in HTTP server, and let players enjoy custom music through a beautiful inventory GUI — no client mods required.

🎧 Turn any Minecraft server into a real music platform.


✨ Features


🕹️ How to Use

For Players

  1. Ask an admin to place a Jukebox and insert a custom disc (given via /music disk).
  2. Shift + Right-click the jukebox to open the music player.
  3. Use the GUI buttons to control playback:
    • Pause / ▶ Resume — Stop or continue the current track.
    • Previous / Next ⏭ — Switch tracks.
    • 📋 Playlist — Open your personal playlist.
    • 📄 Track Library — Browse all available tracks. Right-click a track to add it to your playlist.
    • Add Track — (Admins only) Upload a new .ogg track by pasting a download link in chat.

For Admins

  1. Place a Jukebox, insert a custom disc from /music disk.
  2. Use /music upload and paste a direct .ogg download link in chat.

⚠️ Important: The link must be a direct download URL — it must end with .ogg and open the file immediately (not a page like Google Drive or YouTube). Services like Dropbox (with ?dl=1), GitHub Releases, or a direct web server link work great.

  1. The plugin downloads the file (following any redirects automatically), reads its title, rebuilds the resource pack, and notifies players automatically.

🎵 Format Conversion: If the link points to an MP3, WAV, FLAC, M4A, etc. — the plugin automatically converts it to OGG Mono if ffmpeg is installed on the server. Without ffmpeg — upload tracks in .ogg format directly. Mono is required for correct 3D spatial audio positioning in Minecraft.

🎨 Custom Disc Texture: After the first server launch, a file will appear at plugins/MusicPlay/textures/custom_disc.png. Replace it with your own 16×16 PNG texture to give your music disc a unique look! Rebuild the pack with /music pack after replacing.


🔧 Commands

Command Description Permission
/music play Open the music player GUI
/music disk [sound] Give yourself a custom music disc musicplay.disk
/music upload Upload a new .ogg track via chat link musicplay.upload
/music pack Rebuild the resource pack manually musicplay.upload
/music tracks List all available sound keys
/music linkrp Get the resource pack download link
/music skiprp Disable auto resource pack loading
/music loadrp Re-enable auto resource pack loading
/music help Show help message

⚙️ Technical Details

How It Works

  1. You upload a .ogg file via a URL.
  2. MusicPlay downloads it, parses the Vorbis Comment headers to extract the track title and duration.
  3. It rebuilds a .zip resource pack containing the audio files and sounds.json, then serves it via a built-in Java HTTP server.
  4. Players receive the pack on join. The plugin uses world.playSound() targeting the jukebox location for spatial audio.
  5. A lightweight 1-second timer tracks playback progress per player and triggers auto-switching when a track ends.

Resource Pack

MusicPlay generates and hosts its own resource pack. You need to expose the HTTP port (default: 25604) so players can download it. Configure the public URL in config.yml:

resource-pack-public-url: "http://YOUR_SERVER_IP:25604/musicpack.zip"
http-port: 25604

Localization

All UI text lives in plugins/MusicPlay/lang.yml. On first launch the default file is extracted — just edit the values:

menu.pause: "⏸ Pause"
menu.resume: "▶ Resume"
menu.playlist: "📋 Playlist"
# ... and so on

Permissions

Permission Description
musicplay.disk Give custom music discs
musicplay.upload Upload tracks and rebuild packs

📋 Requirements


🤝 Credits

Built with love using the Paper API and Adventure text components. No client mods required — pure server-side magic. 🪄

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more