# 竹音乐 在 Minecraft 中
一个全服点歌插件。
本项目是 [AllMusic](https://github.com/Coloryr/AllMusic_Server) 的第三方分支。
一个原来叫做 `allmusic - local api` 的项目,但是这个名字太具有误导性了,我对此表示抱歉。
**本插件/模组与 AllMusic 冲突。**
本项目是 [AllMusic](https://github.com/Coloryr/AllMusic_Server) 的第三方分支。
**请注意**:本模组与 AllMusic 原模组无关!
**配置API**:[https://github.com/wifi-left/bamboo-music-web/](https://github.com/wifi-left/bamboo-music-web/)
NOTICE: This plugin also requires the client to install the [client mod](https://modrinth.com/mod/allmusic-modified-client/versions). (Also work with AllMusic client)
注:需要配合[客户端Mod](https://modrinth.com/mod/allmusic-modified-client/versions)使用(AllMusic客户端也可以)
**Download Client-side mod on Modrinth**: https://modrinth.com/mod/allmusic-modified-client
Supported Server (This Fork):
- Fabric
- Folia
- Forge (Please download the source code to compile)
- Spigot/Bucket/Paper
- Bungeecord/Waterfall/Velocity
## 如何使用
1. 在您的服务器上安装 AllMusic 插件
2. 使用 [This Project](https://github.com/wifi-left/bamboo-music-web/) 创建 API
3. 在 `allmusic/config.json` 中将 UrlRoot 设置为 `apis/local/local.php` (或您自己的 API)
4. 在您的客户端上安装客户端模组
## API
请参考 [https://github.com/wifi-left/bamboo-music-web/](https://github.com/wifi-left/bamboo-music-web/)
### 请求
API: `?value=${VALUE}&type=${TYPE}`
- ${VALUE} 内容 (例如搜索关键词或音乐 ID)
- ${TYPE}:
- 用于搜索时,应为 `search`
- 用于获取音乐 URL 时,应为 `url`
- 用于获取音乐信息时,应为 `info`
- 用于获取专辑信息时,应为 `album`
## 占位符 API 变量
- %allmusic_now_music_name% 歌曲名称
- %allmusic_now_music_al% 歌曲专辑
- %allmusic_now_music_alia% 原唱歌曲
- %allmusic_now_music_author% 作曲者
- %allmusic_now_music_call% 请求歌曲的人
- %allmusic_now_music_info% 歌曲的所有信息
- %allmusic_list_size% 队列大小
- %allmusic_music_list% 队列歌曲
- %allmusic_lyric% 歌词
- %allmusic_tlyric% 翻译后的歌词