Paper/Purpur 服务器的简易语音聊天音乐播放器
本模组是 Simple Voice Chat Music Fabric 模组的移植版!
在 Paper 服务器上与好友一起享受音乐。此模组允许你将 YouTube、Spotify、SoundCloud、Bandcamp、Vimeo、Twitch、MP3、FLAC、WAV、M3U 等流媒体内容传输到 SimpleVoiceChat 群组中。
由轻量级的 lavaplayer 库提供支持。
命令
字符串参数(如 <song>)无需加引号,因为此版本只是简单地连接参数,而非使用 Brigadier 系统。
-
/music play <歌曲标题 | Spotify URL> - 搜索并将第一个结果加入队列
-
/music search <歌曲> - 列出来自 YouTube(默认)的所有结果,并让你选择要加入队列的歌曲
-
/music now-playing - 显示当前正在播放的歌曲
-
/music queue - 显示队列
-
/music skip - 跳过当前歌曲
-
/music pause - 暂停当前歌曲
-
/music resume - 恢复当前播放的歌曲
-
/music stop - 停止当前歌曲并清空队列
-
/music volume <int;1-100> - 设置音量
-
/music kill - 当出现问题且希望在不重启服务器的情况下重置插件时使用
-
/music bassboost <浮点数;0-200> - 添加低音增强
歌曲可以是 Spotify、SoundCloud、YouTube 或 Bandcamp 的 URL,也可以只是一个搜索词。默认情况下,它会在 YouTube 上进行搜索。这仅适用于通过查询进行的情况;对于 YouTube URL,你必须使用 ytsearch: (URL)、scsearch: 你的搜索词 等查询方式强制指定在 YouTube 或 SoundCloud 等平台上进行搜索。Lavaplayer 也支持 YouTube Music,尽管在我的测试中它的表现并不太稳定。要搜索 YouTube Music,请使用查询 ytmsearch: 你的搜索词。
Spotify
Spotify “集成”功能可以正常工作,它会使用 Spotify API 获取标题和艺术家信息,然后在 YouTube 上进行搜索。你可以粘贴类似 https://open.spotify.com/track/... 格式的 Spotify URL。它不需要“强制搜索”,可以直接像这样粘贴:/music play https://open.spotify.com/track/19fKJrO9XdOf6Xla2QHecO?si=1f494f7a8d664d62
支持
MrTronMan 为了个人用途添加了 Spotify 支持,因此如果在使用过程中遇到任何错误,请提交 issue!
你可以在 GitHub 上提交 issue(推荐),或者联系 Discord 上的 @gavingogaming 以获取此 Paper 版本的支持——该版本存在一些 Fabric 模组中没有的错误。
错误
该插件经过了轻度测试,但我目前发现了一些 bug:
- @MrTronMan 仅测试了 Spotify、SoundCloud 和 YouTube,它们似乎都能正常工作。
- 若要搜索 YouTube URL,你必须输入
ytsearch:(URL);使用 /music play 输入无效,因为它会检查是否为 Spotify URL 或仅仅是 YouTube 搜索查询
- 搜索词周围不需要引号,与原版不同
- 如果未提供数字,/music bassboost 会报错... oop(我尚未修复此问题)
致谢
原版模组由 @ItzDerok 创建——请通过本 readme 顶部的链接查看原版模组。我 (@GavinGoGaming) 已获得许可,使用 SVC 的 bukkit api 将模组移植到 Paper 此处,@MrTronMan 则持续维护该插件并修复了 Spotify 相关问题。
Simple Voice Chat Music Player for Paper/Purpur
This mod is a port of the Simple Voice Chat Music fabric mod!
Enjoy music with your friends on a Paper server. This mod allows you to stream youtube, spotify, soundcloud, bandcamp, vimeo, twitch, mp3, flac, wav, m3u, and more into SimpleVoiceChat groups.
Powered by the lightweight lavaplayer library.
Commands
String args like <song> do not need quotes around them due to this version just joining args instead of using brigadier.
/music play <song title | spotify URL> - Searches and queues the first result
/music search <song> - Lists all results from YouTube (default) and lets you choose which you want to queue
/music now-playing - Shows the current song
/music queue - Shows the queue
/music skip - Skips the current song
/music pause - Pauses the current song
/music resume - Resumes the current song
/music stop - Stops the current song and clears the queue
/music volume <int;1-100> - Sets the volume
/music kill - use when something goes wrong and you want to restart the plugin without restarting the server
/music bassboost <float;0-200> - adds bass boost
Song can be a Spotify URL, soundcloud URL, Youtube URL, bandcamp URL, etc or it can be just a search term. By default, it will search on YouTube. This is by query only, for YouTube URL you MUST force it to search on YouTube or Soundcloud etc. by using the query ytsearch: (URL), scsearch: your search terms etc. Lavaplayer also supports YouTube Music, though it wasn't very reliable in my testing. To search YouTube Music, use the query ytmsearch: your search terms.
Spotify
Spotify "Integration" does work with this, it uses the Spotify API to get the title and artist and searches it on YouTube. You can paste only spotify URLs that look like https://open.spotify.com/track/... It does not need a "forced search". It can be pasted in normally like: /music play https://open.spotify.com/track/19fKJrO9XdOf6Xla2QHecO?si=1f494f7a8d664d62
Support
MrTronMan added spotify for personal use, so if there are any bugs with it, please open an issue!
You may open an issue on GitHub (preferred) or contact @gavingogaming on discord for support with this Paper version - there are bugs in this version nonexistant in the fabric mod.
Bugs
This plugin was lightly tested, but heres some bugs I've found so far:
- @MrTronMan only tested Spotify, SoundCloud, and YouTube all seem to be working fine.
- To search a YouTube URL you MUST type
ytsearch:(URL) typing it with /music play doesn't work because it checks for either spotify URL or just a youtube search query
- Quotes are not needed around search terms, unlike the original
- /music bassboost errors if no number is given... oop (I still didnt fix this)
Credits
The original mod was created by @ItzDerok - check out the original mod via the link at the top of this readme. I (@GavinGoGaming) have gotten permission to port the mod to Paper using SVC's bukkit api here and @MrTronMan has kept up the plugin with spotify fixes.
评论 0
登录后参与评分
还没有评论,来抢沙发吧