peyajCustomDisc
适用于 Paper 服务器的自定义音乐唱片插件。上传任意音频文件,即可生成可播放的唱片。
功能特性
- Web 管理面板 — 通过浏览器上传和管理唱片
- 自动转换 — 支持 MP3、WAV、FLAC、M4A、MP4、WMA、AAC、WebM → OGG
- 资源包生成 — 自动构建 Java 版与基岩版资源包
- 唱片机集成 — 提供完整的全息显示及“正在播放”信息
- 循环模式 — 右键点击唱片机(Shift+右击)切换循环播放
- 区域音乐 — 将唱片分配给 WorldGuard 区域(自动循环)
- 游戏内目录 — 通过图形界面浏览和收集唱片
- Geyser 支持 — 基岩版玩家可听到自定义唱片并查看全息效果
依赖要求
| 依赖项 | 版本 |
|---|---|
| Paper | 1.21.X - 26.2 (最新版) |
| Java | 21+ |
| FFmpeg | 非 OGG 格式上传必需(插件已内置) |
| WorldGuard | 可选 — 启用区域音乐功能 |
| Geyser-Spigot | 可选 — 基岩版全息显示与自定义唱片支持 |
命令
| 命令 | 描述 |
|---|---|
/disc add <id> <url> <name> <author> [style] |
下载、转换并添加自定义唱片(空格请使用下划线代替) |
/disc delete <id> |
删除自定义唱片(移除注册表并删除文件) |
/disc give <player> <id> |
给予玩家一张自定义唱片 |
/disc list |
列出所有唱片 |
/disc play <id> |
播放唱片(便携式播放) |
/disc stop |
停止所有唱片音乐 |
/disc catalog |
打开唱片目录 GUI |
/disc region set <region> <disc> |
为 WorldGuard 区域分配音乐 |
/disc region remove <region> |
移除区域音乐 |
/disc region list |
列出区域映射关系 |
/disc web |
生成一次性管理员登录链接 |
添加唱片
推荐通过 Web 管理面板 (/disc web) 添加唱片。它允许您上传音频文件、设计自定义唱片纹理,并在保存前预览所有内容。支持的上传格式包括:MP3、WAV、FLAC、M4A、MP4、WMA、AAC、WebM。插件会自动将其转换为 OGG 格式。
如果您拥有音频文件的直接下载链接,也可以直接在-game 中添加唱片:
/disc add rushe https://mywebsite.com/audio/rushe.mp3 Rush_E Sheet_Music_Boss relic
在曲目名称和作者字段中,请使用下划线 (_) 代替空格。最后一个参数是唱片样式纹理(可选)。
权限
| 权限节点 | 描述 |
|---|---|
pjcustomdisc.admin |
访问所有命令 |
jukeboxweb.admin |
访问 Web 管理面板及使用 /give 命令 |
配置
[!IMPORTANT] 在创建或添加自定义唱片之前,请先完成配置设置!
- 配置
web-port为您服务器主机上开放/已分配的端口(这是 Web 服务器绑定的内部端口)。- 配置
public-url以指向您服务器的公共 IP/域名和端口。插件使用此 URL 来编译发送给玩家的资源包下载链接。如果您在设置此选项之前添加了歌曲,玩家将收到指向localhost的资源包下载链接,这将导致失败。
[!WARNING] 请勿将 Minecraft 服务器端口(默认
25565)用于web-port! Web 界面和下载服务器作为独立服务运行于您的主机上。您必须为web-port分配/指定一个完全独立的端口(例如8080、25566等)。使用 Minecraft 端口会导致BindException(地址已被占用),从而使插件无法启用。
[!WARNING] Geyser 用户与基岩版纹理 如果您设置了
auto-reload-geyser: true,插件将在每次添加或删除唱片时运行/geyser reload。然而,Geyser 存在限制,即它无法在服务器运行时热重载新的资源包纹理。如果您创建了全新的唱片,基岩版玩家可能会将其显示为 "Paper",直到您执行完整的服务器/restart。(如果您只是替换现有唱片的音频,则无需重启)。
# config.yml
web-port: 8080
public-url: "http://your-server-ip:8080"
haproxy-support: false
# 区域音乐(通过命令管理)
region-music:
spawn: "my_disc_id"
# 唱片机设置
jukebox:
volume: 1.0
pitch: 1.0
sound-category: "RECORDS"
range: 64.0
enable-particles: true
统计
peyajCustomDisc
Custom music disc plugin for Paper servers. Upload any audio file, get a playable disc.
Features
- Web Dashboard — Upload and manage discs from a browser
- Auto Conversion — Accepts MP3, WAV, FLAC, M4A, MP4, WMA, AAC, WebM → OGG
- Resource Pack Generation — Java & Bedrock packs built automatically
- Jukebox Integration — Full hologram display with Now Playing info
- Loop Mode — Shift-Right-Click any jukebox to toggle looping
- Region Music — Assign discs to WorldGuard regions (auto-loops)
- In-Game Catalog — Browse and collect discs via GUI
- Geyser Support — Bedrock players hear the custom disc with holograms
Requirements
| Dependency | Version |
|---|---|
| Paper | 1.21.X - 26.2 (latest) |
| Java | 21+ |
| FFmpeg | Required for non-OGG uploads (already bundled in the plugin) |
| WorldGuard | Optional — enables region music |
| Geyser-Spigot | Optional — Bedrock hologram & custom disc support |
Commands
| Command | Description |
|---|---|
/disc add <id> <url> <name> <author> [style] |
Download, convert, and add a custom disc (use underscores for spaces) |
/disc delete <id> |
Delete a custom disc (removes registry & deletes files) |
/disc give <player> <id> |
Give a custom disc |
/disc list |
List all discs |
/disc play <id> |
Play a disc (portable) |
/disc stop |
Stop all disc music |
/disc catalog |
Open the disc catalog GUI |
/disc region set <region> <disc> |
Assign music to a WorldGuard region |
/disc region remove <region> |
Remove region music |
/disc region list |
List region mappings |
/disc web |
Generate a one-time admin login link |
Adding Discs
The recommended way to add discs is through the Web Dashboard (/disc web). It lets you upload audio files, design a custom disc texture, and preview everything before saving. Supported upload formats: MP3, WAV, FLAC, M4A, MP4, WMA, AAC, WebM. The plugin converts them to OGG automatically.
You can also add discs directly in-game if you have a direct download link to the audio file:
/disc add rushe https://mywebsite.com/audio/rushe.mp3 Rush_E Sheet_Music_Boss relic
Use underscores (_) for spaces in the track name and author. The last argument is the disc style texture (optional).
Permissions
| Permission | Description |
|---|---|
pjcustomdisc.admin |
Access to all commands |
jukeboxweb.admin |
Access to web dashboard & give command |
Configuration
[!IMPORTANT] Setup the configuration FIRST before creating or adding custom discs!
- Configure
web-portto an open/allocated port on your server host (this is the internal port the web server binds to).- Configure
public-urlto point to your server's public IP/Domain and port. The plugin uses this URL to compile the resource pack download URL sent to players. If you add songs before setting this up, players will be sent resource pack downloads pointing tolocalhost, which will fail.
[!WARNING] Do NOT use your Minecraft server port (default
25565) forweb-port! The web interface and download server run as a separate service on your host. You must assign/allocate a completely separate port forweb-port(e.g.8080,25566, etc.). Using the Minecraft port will cause aBindException(Address already in use) and the plugin will fail to enable.
[!WARNING] Geyser Users & Bedrock Textures If you have
auto-reload-geyser: true, the plugin will run/geyser reloadevery time you add/delete a disc. However, Geyser has a limitation where it cannot hot-reload new resource pack textures while the server is running. If you create a brand new disc, Bedrock players might see it as "Paper" until you do a full server/restart. (If you are just replacing audio for an existing disc, a restart is not required).
# config.yml
web-port: 8080
public-url: "http://your-server-ip:8080"
haproxy-support: false
# Region music (managed via commands)
region-music:
spawn: "my_disc_id"
# Jukebox settings
jukebox:
volume: 1.0
pitch: 1.0
sound-category: "RECORDS"
range: 64.0
enable-particles: true
Stats
下载 peyaj's CustomDiscs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 peyaj's CustomDiscs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 peyaj's CustomDiscs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 peyaj's CustomDiscs
下载 peyaj's CustomDiscs
下载 peyaj's CustomDiscs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 peyaj's CustomDiscs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 peyaj's CustomDiscs
下载 peyaj's CustomDiscs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 peyaj's CustomDiscs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
没有变化,仅与 Paper 版本持平。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧