COWMODSКаталог модов

MusicPlay

MusicPlay turns your Minecraft server into a fully-featured music platform. Upload OGG/MP3 tracks, manage personal playlists, and enjoy auto-switching playback - all through a beautiful inventory GUI.

Автор: Lolovilka863871обновлён 8 окт. 2026 г.
ДекорТехнологииУтилиты

Описание

🎵 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

  • 🎼 Custom Track Library - Upload any .ogg audio file via a chat link. Titles are read automatically from the file’s metadata (Vorbis TITLE tag).
  • 🖥️ Inventory GUI Player - Open a clean music player interface by Shift + Right-clicking your jukebox, or using /music play.
  • 📋 Personal Playlists - Every player has their own playlist (up to 45 tracks). Add tracks with Right-click in the library, remove them with Shift + Left-click in your playlist.
  • ⏭️ Auto Track Switching - When a song ends, the next one plays automatically. Works in both Library mode and Playlist mode.
  • 🔁 Looping Playlists - Playing your playlist? It loops seamlessly.
  • 📦 Built-in Resource Pack Server - No external hosting needed. MusicPlay runs its own HTTP server and sends the pack to players on join.
  • 🔤 Readable Track Names - Forget custom.track_1. Track titles are extracted from the .ogg file and shown everywhere in the UI.
  • 🎵 Audio Conversion - Supports uploading MP3, WAV, FLAC, M4A and other formats. If ffmpeg is installed on the server, the plugin automatically converts the track to OGG Mono (as required by Minecraft) at 192kbps quality.
  • 🔊 Mono Audio - All converted tracks are forced to mono, ensuring correct 3D spatial positioning in-game.
  • 🔗 Smart Download - Automatically follows HTTP redirects (301/302/307/308), sanitizes URLs from stray characters, and works with any CDN.
  • 🌍 Full Localization - Every string in the UI and chat is stored in lang.yml. Translate the plugin to any language in minutes.
  • 🎛️ Per-Player Resource Pack Control - Players can opt out of auto-loading and install the pack manually.

🕹️ 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

CommandDescriptionPermission
/music playOpen the music player GUI—
/music disk [sound]Give yourself a custom music discmusicplay.disk
/music uploadUpload a new .ogg track via chat linkmusicplay.upload
/music packRebuild the resource pack manuallymusicplay.upload
/music tracksList all available sound keys—
/music linkrpGet the resource pack download link—
/music skiprpDisable auto resource pack loading—
/music loadrpRe-enable auto resource pack loading—
/music helpShow 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

PermissionDescription
musicplay.diskGive custom music discs
musicplay.uploadUpload tracks and rebuild packs

📋 Requirements

  • Server: Paper 1.21+ (or compatible fork)
  • Java: 21+
  • Port: One open TCP port for the resource pack HTTP server (default 25604)

🤝 Credits

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

Галерея

GUI-Window, music player

Последние версии

Все версии →
beta

MusicPlay 1.0-SNAPSHOT

1.0-SNAPSHOT
8 окт. 2026 г.78Minecraft: 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper, purpur
Скачать
Что нового
# 🎵 MusicPlay v1.1.0-SNAPSHOT - Playlists & Universal Audio Update > ⚠️ **Beta / Snapshot Warning:** > This release (**v1.1.0-SNAPSHOT**) is a **preview / snapshot version**. Version 1.1 is currently under active development and **may contain bugs or instability**. Use it with caution and report any issues you encounter! A major update for **MusicPlay 1.1**, taking server-side music to a whole new level! No more limitations to the OGG format only, no more generic track names like `custom.track_1`, and no more manual track switching. The plugin now features personal playlists, auto-play, universal audio conversion via FFmpeg, full localization support, and an improved built-in HTTP engine. > 🎧 **MusicPlay 1.1 Snapshot** - turn your server into a full-fledged streaming audio player without a single client-side mod! --- ## 🚀 Key Features in Version 1.1 ### 1. 🎼 Support for Any Audio Format via FFmpeg (MP3, WAV, FLAC, M4A...) - In version 1.0, only raw `.ogg` files were supported. - In version 1.1, automatic conversion has been added! If **FFmpeg** is installed on your server, you can insert direct links to **MP3, WAV, FLAC, M4A, AAC**, and other audio formats. - The plugin converts tracks on the fly into **OGG Vorbis Mono (192 kbps)** - the standard required for proper playback in the Minecraft engine. - **Forced Mono Audio:** Minecraft's sound engine only applies 3D spatial positioning to mono audio files. Stereo files played equally loud in both headphones regardless of distance. Now, 3D spatial sound from jukeboxes works perfectly! ### 2. 📋 Personal Playlists - Every player now gets their own personal playlist with a capacity of up to **45 tracks**! - Easy management directly from the player GUI (`/music play` -> **"📋 Playlist"** button): - **Right-Click** a track in the global library to add it to your playlist. - **Shift + Left-Click** a track in the playlist menu to remove it. - **"▶ Play Playlist" Button** - starts playback of your saved collection. - Playlists are saved to disk and persist across server restarts. ### 3. ⏭️ Smart Auto-Play & Track Looping - No need to manually walk up to the jukebox to play the next song anymore! - The plugin automatically reads the actual duration of the audio file and runs a lightweight timer. - When a song finishes: - In library mode, the next track in order starts automatically. - In playlist mode, tracks play sequentially and loop seamlessly. ### 4. 🔤 Real Track Titles from Metadata (Vorbis Comments) - Forget uninformative names like `minecraft:custom.track_5`. - The built-in OGG Vorbis header parser extracts the original `TITLE` tag directly from the file metadata. - Actual track names are now displayed across all menus, item descriptions, and chat messages. ### 5. 🌍 Full Localization File (`lang.yml`) - All plugin messages and UI text have been moved to `plugins/MusicPlay/lang.yml`. - Customize menu titles, item lore, tooltips, and chat messages in any language. - Supports dynamic placeholders: `{title}`, `{max}`, `{url}`, `{path}`, `{error}`, `{current}`, `{total}`. ### 6. 🎛️ Individual Resource Pack Autodownload Management - Players with slow internet connections or custom resource packs can control pack loading themselves: - `/music skiprp` - disable automatic resource pack downloading on join. - `/music loadrp` - re-enable automatic resource pack downloading. - `/music linkrp` - get a direct link for manual resource pack installation. ### 7. 🎨 Custom Music Disc Texture Support - The plugin automatically generates a template texture at `plugins/MusicPlay/textures/custom_disc.png`. - Server admins can replace this PNG file with their own 16x16 texture, run `/music pack`, and custom music discs will receive a unique visual style in-game! ### 8. 🛠️ Core Refactoring & Optimization - Architecture completely rewritten using modular Kotlin services (`PlaybackService`, `PlaylistService`, `ResourcePackService`, `LangService`, `TrackService`). - Advanced HTTP downloader with automatic redirect handling (301, 302, 307, 308), URL sanitization, and support for popular platforms (Dropbox, GitHub Releases, direct CDNs). - Prevented thread leaks on server reloads. --- ## 🕹️ How to Use ### For Players: 1. Insert a disc into a jukebox and press **Shift + Right-Click** (or type `/music play`). 2. In the main menu, click **"Track Library"**: - **Left-Click** to play the song immediately on the jukebox. - **Right-Click** to add the song to your personal playlist. 3. Open **"📋 Playlist"**: - Click **"▶ Play Playlist"** - your tracks will start playing in sequence and loop automatically. - To remove a track from your selection, press **Shift + Left-Click**. ### For Server Administrators: 1. **FFmpeg Setup (for MP3, WAV, FLAC, etc. conversion):** - Ensure `ffmpeg` is installed on your server machine and accessible via console/PATH. - If FFmpeg is missing, uploading non-OGG formats will show an error prompt, but direct `.ogg` files will continue to work without external utilities. 2. **Uploading a Track:** - Type `/music upload` and send the direct link in chat. - The plugin will download the audio, convert it to mono OGG, read metadata, automatically rebuild `musicpack.zip`, and notify players. --- ## 🔧 Commands & Permissions | Command | Description | Permission | |---|---|---| | `/music play` (or `/m play`) | Open the GUI player | — | | `/music disk [sound]` | Give yourself a custom music disc | `musicplay.disk` | | `/music upload` | Upload a new track via direct link from chat | `musicplay.upload` | | `/music pack` | Force rebuild the resource pack | `musicplay.upload` | | `/music tracks` | List all available sound keys | — | | `/music linkrp` | Get a direct link to the resource pack | — | | `/music skiprp` | Disable automatic resource pack loading for yourself | — | | `/music loadrp` | Enable automatic resource pack loading for yourself | — | | `/music help` | Show command help | — | --- ## ⚙️ Technical Requirements (v1.1) - **Server Engine:** Paper 1.21+ / Purpur / Folia - **Java Version:** JDK 21+ - **Optional:** System `ffmpeg` installation for automatic conversion of non-OGG audio formats. - **Port:** One open TCP port for the resource pack HTTP server (default `25604`)
release

MusicPlay 1.0

1.0
20 июн. 2026 г.309Minecraft: 1.21.8, 1.21.9, 1.21.10, 1.21.11paper
Скачать