音乐

关于 Music
Music 插件旨在让玩家能够在服务器上轻松播放自定义循环音频。创建此插件的原因是为了能够播放音乐或循环音效,而无需替换任何现有的 Minecraft 基础声音。该插件的工作方式允许玩家在世界的特定区域创建循环(即在一定时间后重复播放的声音)。此插件原生支持同时播放多达 220 个循环,但如有需要,可配置为支持数十万个。在设置歌曲时,请使用命令 /Music play [SongName] [ID],其中 [SongName] 是声音的名称,[ID] 是你希望处理该歌曲的频道 ID。
功能特性
- 添加了使用资源包在 MineCraft 中播放歌曲的能力
- 每个服务器可以拥有多个资源包/音乐文件。
- 资源包的下载链接可配置
- 每首歌曲的重播时间可配置
- 每位玩家对自己的曲目拥有控制权,除非拥有 OP 权限,否则无法停止或更改他人的歌曲
- 适用于所有版本的 Bukkit
要了解如何添加新歌曲,请查看在至少一次加载了该插件启动服务器后,在 Server/plugins/Music 文件夹中生成的 READ ME.txt 文件 之后。
命令
| /Music |
|
|
控制所有音乐命令 |
| /Music setUpStation [Songname using tab] [ID] |
|
|
在频道 [ID] 上播放 [Songname] |
| /Music addToQueue [Songname] [ID] |
|
|
将歌曲 [Songname] 添加到队列 |
| /Music removeFromQueue [queue] [ID] |
|
|
从队列中移除索引 [queue] 处的歌曲 |
| /Music clearQueue [ID] |
|
|
清空频道的队列。 |
| /Music Help |
|
|
列出所有命令 |
| /Music ListStations [Page] |
|
|
列出所有活跃的频道、歌曲及其所有者(如果有) |
| /Music PlayOnce [Songname using tab] |
|
|
仅播放一次该歌曲。这与原版 Minecraft 的 /playSound [Sound] 相同 |
权限:
- music.* --- 授予所有权限访问权
- music.admin -- 目前与 'music.*' 相同。
- music.changevolumetoglobal -- 允许用户将唱片机音量更改为“全局”
- music.default -- 允许用户放置唱片机、更改频道和音量
- music.usejukebox -- 允许用户与用于音乐的唱片机进行交互
- music.placejukebox -- 允许玩家放置唱片机。
- music.changesong -- 允许玩家更改用于唱片机的频道
- music.changevolume -- 允许玩家更改唱片机音量
客户端资源包与服务端声音添加器
资源包:
RandomBits1 : 随下载包提供
使用 Music 的插件/资源包列表
依赖项与兼容性
本插件无依赖项。如果客户端(在线玩家)的资源包中存在名称冲突,可能会出现兼容性问题。(例如,服务器上名为 "Crash" 的歌曲,如果玩家的资源包中有另一个名为 "Crash" 的不同声音,则可能发生冲突。)歌曲名称区分大小写,因此如果服务器上的歌曲名称与玩家资源包中的名称不完全一致(例如 'Piano' 和 'PianO'),玩家可能听不到音乐。
添加新声音
如果您希望向游戏中添加新声音,请阅读本教程:
开发者信息
如果您想了解如何创建自己的资源包,请参阅 READ ME.txt 文件
Music 现已成为一个 API,因此您的插件现在可以播放自定义音乐。Music.playSound(String songname, int StreamID, Location location, String owner) 其中 songname 是歌曲名称(区分大小写),StreamID 是该循环播放所在的频道 ID,location 是循环播放的位置,owner 是频道的所有者(不能为空,如果您不希望特定玩家编辑任何内容,应使用您插件的名称)
Music.playSoundOnce(String songname, Location location) 其中,songname 是歌曲名称(区分大小写),location 是声音播放的位置。
Music.removeSound(int StreamID) 其中,StreamID 是该声音正在播放的流 ID。
本插件会自动更新:
本插件会检查更新并下载更新。如果您不希望本插件自动更新,只需编辑 "plugins\AUpdater\global.yml" 文件中的一行即可。将该处的变量值改为 false 即可(如果遇到任何问题,可以复制下面的代码)。
# Updater by ArsenArsen
# Global config
# Sets should updates be downloaded globaly
update: false
安装方法
- 将 Music.jar 和 Music 文件夹放入您的 plugins 文件夹中
- 重启服务器
Music

What is Music
Music was created to allow players to easily play custom loops on servers. The reason this plugin was created was to have the ability to play music or loops without replacing any existing base Minecraft sounds. The way this plugin works allows for players to create a loop (a sound the repeats after a certain amount of time) in specific areas of the world. This plugin naturally can support up to 220 loops being played at once, but this can be configured to be hundreds of thousands if needed. When setting up a song, you would use the command /Music play [SongName] [ID], where [SongName] is the name of the sound, and [ID] is the ID of the station you want to handle the song.
Features
- Adds the ability to play songs in MineCraft using resource packs
- Can have multiple Resource packs/ Music files on per server.
- Links to download Resource packs are configurable
- Time each song will be replayed are Configurable
- Each player has control over their Track, no one can stop or change another person's song unless they are OP
- Works on all versions of Bukkit
To learn how to add new songs, look at the READ ME.txt that gets generated in the Server/plugins/Music folder after you start the server with the plugin loaded at least once.
Commands
| /Music |
|
|
Controls all Music Commands |
| /Music setUpStation [Songname using tab] [ID] |
|
|
Plays [Songname] on Station [ID] |
| /Music addToQueue [Songname] [ID] |
|
|
adds Song [Songname] to a queue |
| /Music removeFromQueue [queue] [ID] |
|
|
Removes song at index [queue] from queue |
| /Music clearQueue [ID] |
|
|
clears station's queue. |
| /Music Help |
|
|
Lists all commands |
| /Music ListStations [Page] |
|
|
Lists all stations active, the song, who owns it (if anyone does) |
| /Music PlayOnce [Songname using tab] |
|
|
Plays the song once. It is the same as vanilla Minecraft's /playSound [Sound] |
Permissions:
- music.* --- Give access to all permissions
- music.admin -- Currently, the same as 'music.*'.
- music.changevolumetoglobal -- Allows users to change the volume of the jukebox to "global"
- music.default -- Allows users to place jukeboxes, change the station, and the volume
- music.usejukebox -- Allows users to interact with jukeboxes for Music
- music.placejukebox -- Allows players to place jukeboxes.
- music.changesong -- Allows players to be able to change the station used for jukeboxes
- music.changevolume -- Allows players to change the volume of the jukebox
Resourcepacks for Clients and Sound adder for Server
Resourcepacks:
RandomBits1 : Comes With Download
List of Plugins/resourcepacks that use Music
Dependencies and Compatibility
There are no dependencies. Compatibility issues may occur if the Client(player online) has conflicting names on their resourcepack. (e.g. A song on the server called "Crash" may conflict if player has resourcepack that has a different sound named "Crash") Songs are case sensitive, so if a song on the server does not have the same name, but with different capital letters (E.G. 'Piano' and 'PianO' ), the players may not hear the music.
Adding new sounds
If you wish to add new sounds to your game, read this tutorial:
Developer Information
If you want to learn how to create your own resourcepacks, look at the READ ME.txt
Music is now an API, so your plugins can now play custom music. Music.playSound(String songname, int StreamID, Location location, String owner) The songname is the name of the song (CaSe Sensitive) StreamID is the ID of the steam that this loop will play on, location is the location that the loop will be played at, and owner is the owner of the stream (can not be null, you should use the name of your plugin if you don't want a specific player editing anything)
Music.playSoundOnce(String songname, Location location) songname is the name of the song (CaSe Sensitive) location is the location the sound will be played
Music.removeSound(int StreamID) StreamID is the ID of the stream the sound is playing on.
This plugin does update automatically:
This plugin checks for updates and will download updates. If you do not want this plugin to automatically update, all you need to do is edit one line in the "plugins\AUpdater\global.yml" file. Just change the one variable in there to false (or, if you run into any problems, copy the code below)
# Updater by ArsenArsen
# Global config
# Sets should updates be downloaded globaly
update: false
How to Install
- Drop the Music.Jar and Music file into your plugins folder
- Restart your server
评论 0
登录后参与评分
还没有评论,来抢沙发吧