音乐
![]()
关于 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 的插件/资源包列表
- EventSounds :在事件发生时播放自定义声音。
依赖项与兼容性
本插件无依赖项。如果客户端(在线玩家)的资源包中存在名称冲突,可能会出现兼容性问题。(例如,服务器上名为 "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
- EventSounds :Play custom sounds on an event.
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
下载 Music
下载 Music
下载 Music
下载 Music
下载 Music
下载 Music
下载 Music
下载 Music
下载 Music
下载 Music
2.7.34
已更新为 Maven。
使音效遵循音乐设置,以便部分玩家可按需关闭。
修复了重载时的音量问题。
2.7.33
已更新至 1.14。
已更新为 Maven。
2.7.32
新增 "music.command" 权限,允许使用所有 /music 命令。
新增 "music.usejukebox" 权限,允许用户与留声机交互。
2.7.31
新增对 1.8 的支持。
2.7.30
修复了在配置文件中未设置循环时导致的崩溃。
2.7.29
新增在配置中禁用消息的功能。
2.7.28
新增对 1.13 的支持。
新增将电台设置为“随机”的功能。
修复了当电台被多次设置时出现的溢出问题。
修复了设置音量时会向聊天发送消息的问题。
修复了因旧版支持导致电台位置被存储的问题。
2.7.27
修复了 1.12 中的 NPE(空指针异常)错误。
2.7.26
新增对 1.13 的预支持。
2.7.25
修复了全局音量问题。
为当前电台添加了物品发光效果。
2.7.24
为留声机添加了音量控制功能。
2.7.23
修复了 NPE(空指针异常)。
2.7.22
修复了更新器超时错误。
2.7.21
修复了 GitHub 更新器。
2.7.20
修复了 CraftBukkit 服务器上的 NPE(空指针异常)。
将通道更改为记录材料。
2.7.19
新增了 GitHub 更新器。
2.7.18
新增了停止音乐的功能。
2.7.17
修复了更新器。
新增了留声机!它们将用于播放音乐。
新增了 /music removeStation 命令。
2.7.16
更新了资源包列表。现在应支持 1.12.2。
新增了 20 首新歌曲!
新增了提示用户下载资源包的提示信息(如果此插件安装在服务器上)。
修复了即使在初始设置完成后文件仍在继续下载的问题。
2.7.15
新增了电台所有权验证。
修复了参数命名问题。
进行了常规代码清理。
上传 b
2.7.14
修复了在库存外点击时导致的 NPE(空指针异常)。
清理了代码。
2.7.13
新增了留声机。
修复了一些 NPE(空指针异常)。
开始转向仅使用留声机的音效系统。
2.7.12
修复了更新器。
修复了 NPE(空指针异常)。
更新了音效文件以支持 1.12。
2.7.11
更新了更新器。
2.7.10
为新 BukkitDev 网站更新了代码。
新增了变更日志。
2.7.09
修复了配置文件错误。
2.7.08
新增了 bStats。
移除了 /loop 命令(现仅使用 /music)。
重命名了许多命令。
所有“流”现在都称为“电台”。
现在可以将多首歌曲添加到同一个电台。
修复了 /music get 消息。
修复了帮助消息。
修复了一些小错误。
2.7.07
新增了新的更新器。
进行了更改,使音乐加载器运行更快并使用实际时间(而非时间*4)。
修复了一些文本和文件链接。
2.7.06
新增了许可证。
修复了一些小错误。
2.7.05
新增了 README.txt 生成器。
2.7.03
制作了文本文件的自动生成器。
可能修复了自动更新器的错误。
2.7.03
修复了更新器。
2.7.02
新增了自动更新器。
2.7.01
新增了 /loop createSong (显示名称) (歌曲名) (时长)。
通过此命令,你可以直接从服务器创建一首歌曲。注意:必须拥有 OP 权限才能使用。
修复了错误并清理了代码。
2.6.5
修复了错误:在使用“playonce”功能时歌曲不播放。
2.6.4
修复了错误:创建了名为 "ResoucePack" 的文件而不是 "ResourcePack"。
2.6.3
新增了加入资源包的消息。即将添加禁用该功能的选项。
修复了一些文本文件。修复了 readme.txt。
2.6.2
新增了自动生成文件的功能。这意味着下载体积会更小。
修复了错误。
2.6.1
增加了声音的覆盖半径。
新增了 READ ME.txt。
2.5.1
修复了错误。修复了计时器。
2.4.5
新增了 Music.class。
新增了 Music.playSound()。
新增了 Music.playSoundOnce()。
新增了 Music.removeSound()。
新增了 Music.getInstance()。
2.4.4
新增了三首新歌曲。
移除了旧的 txt 文件。
2.4.3
新增了选择歌曲的菜单。
新增了 /loop menu play (流)。
新增了 /loop menu playonce。
2.4.1:
修复了一些小错误。
2.4:
修复了消息中的颜色代码(出错时不再显示无聊的白色文本)。
当玩家未正确使用命令时增加了警告。
清理了代码。
2.3:
新增了 /loop playOnce 命令以播放一次歌曲。
2.2:
修复了在不带参数的情况下使用 /loop 时出现的问题。
2.1:
重新发布。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧