Skip to content

MengXinSheQu/MVPMusicBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MVPMusicBox - MVP音乐盒插件🎵[中文]

介绍:

该插件添加了MVP音乐盒🎵。

当玩家击杀总数(不包括自杀)为回合第一时,会播放玩家MVP音乐盒。

如果玩家没有MVP音乐盒,则仅显示信息而不会进行播放与提示。

使用:

dependencies-exiled.rar解压至EXILED\Plugins\dependencies

然后将MVPMusicBox.dll放至EXILED\Plugins

服务器就会加载该插件了

JSON配置教程:

插件进行加载时会在EXILED目录生成音乐盒文件夹📂

在该文件夹内会生成Config.json文件📄和音乐文件文件夹📂

Config.json用于储存玩家音乐盒配置文件📄

音乐文件内放入音乐文件🎵

Config.json配置示例:

[
  {
    "UserId": "[UserId]", //玩家64位 数字结尾加上@steam
    "MusicName": "MyMusic", //从'音乐文件'文件夹加载的音乐名称,不需要后缀名
    "BroadcastName": "[DEBUG]" //游戏内提示的名称,例如:正在播放[DEBUG]
  }
]

在回合开启和插件加载时插件会进行一次Json读取

音乐文件要求:

音乐应为单轨道 48000采样率的ogg音频

时间应在10秒内

MVPMusicBox - MVP Music Box Plugin 🎵[English]

Info:

This plugin has added MVP Music Box 🎵。

When the total number of player kills (excluding suicide) reaches the first , The player's MVP music box will be played.

If the player does not have an MVP music box, only information will be displayed without playing or prompting.

Usage:

Extract 'dependencies.rar' to 'EXILED\Plugins\dependencies'

Then place 'MVPMusicBox.dll' into 'EXILED\Plugins'

Tutorial for Json:

When the plugin is loaded, it will generate a 'Music Box' folder in the EXILED directory 📂

A Config. json file will be generated in this folder 📄 And the 'Music Files' folder 📂

Config.json is used to store player music box configuration files 📄

Put music files inside the music file 🎵

Config.jsonconfiguration example:

[
  {
    "UserId": "765611xxxxxx@steam", // Steam64ID
    "MusicName": "musica", //File Name (not need ".ogg")
    "BroadcastName": "My Super Music"//Show name in RoundEnd
  }
]

During turn initiation and plugin loading, the plugin will perform a JSON read once

Remember:

The music Ogg 48000 Mono, < 10s.