插件介绍
当服务器擦除时向 Discord 频道发送通知
Sends map wipe and server protocol change notification to discord.
Upgrading to version 2.1.0
主要用途
主要用于hurtworld、Discord 联动、notification、wipe等服务端功能。 本插件由 MJSU 发布,当前目录记录版本为 v2.4.3,uMod 累计下载 41,439 次。
适用场景
- 希望扩展原版服务器功能的服主
功能分类
查看 uMod 官方英文简介
Sends a notification to a Discord channel when the server wipes
权限节点
discordwipe.admin - allows players to send test messages
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
指令说明
/dw - displays the help text/dw wipe - sends a wipe message/dw protocol - sends a protocol message
dw - displays the help textdw wipe - sends a wipe messagedw protocol - sends a protocol message
相关依赖
- Placeholder API
- Rust Map API
配置说明
{ "Debug Level (None, Error, Warning, Info)": "Warning", "Command": "dw", "Rust Map Image Settings": { "Map Image Source (None, RustMaps, RustMapApi)": "None", "RustMaps.com Settings": { "RustMap.com API Key": "Get Your API Key @ https://rustmaps.com/user/profile", "Generate Staging Map": false }, "RustMapApi Settings": { "Render Name": "Icons", "Image Resolution Scale": 0.5, "File Type (Jpg, Png": "Jpg" } }, "Send wipe message when server wipes": true, "Wipe Webhook url": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks", "Send protocol message when server protocol changes": true, "Protocol Webhook url": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks", "Wipe messages": [ { "Content": "@everyone", "Webhook Override (Overrides the default webhook for this message)": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks", "Send Mode (Always, Random)": "Always", "Embed": { "Enabled": true, "Title": "{server.name}", "Description": "The server has wiped!", "Url": "", "Embed Color": "#de8732", "Image Url": "attachment://map.jpg", "Thumbnail Url": "", "Fields": [ { "Title": "Seed", "Value": "[{world.seed}](https://rustmaps.com/map/{world.size}_{world.seed})", "Inline": true, "Enabled": true }, { "Title": "Size", "Value": "{world.size}M ({world.size!km^2}km^2)", "Inline": true, "Enabled": true }, { "Title": "Protocol", "Value": "{server.protocol.network}", "Inline": true, "Enabled": true }, { "Title": "Click & Connect", "Value": "steam://connect/{server.address}:{server.port}", "Inline": false, "Enabled": true } ], "Footer": { "Icon Url": "", "Text": "", "Enabled": true } } } ], "Protocol messages": [ { "Content": "@everyone", "Webhook Override (Overrides the default webhook for this message)": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks", "Send Mode (Always, Random)": "Always", "Embed": { "Enabled": true, "Title": "{server.name}", "Description": "The server protocol has changed!", "Url": "", "Embed Color": "#de8732", "Image Url": "", "Thumbnail Url": "", "Fields": [ { "Title": "Protocol", "Value": "{server.protocol.network}", "Inline": true, "Enabled": true }, { "Title": "Previous Protocol", "Value": "{server.protocol.previous}", "Inline": true, "Enabled": true }, { "Title": "Mandatory Client Update", "Value": "This update requires a mandatory client update in order to be able to play on the server", "Inline": false, "Enabled": true }, { "Title": "Click & Connect", "Value": "steam://connect/{server.address}:{server.port}", "Inline": false, "Enabled": true } ], "Footer": { "Icon Url": "", "Text": "", "Enabled": true } } } ] }
The default footer can be disabled by changing the footer value enabled to false.You can also add your own custom footer which will disable to current one
官方配置示例
{
"Debug Level (None, Error, Warning, Info)": "Warning",
"Command": "dw",
"Rust Map Image Settings": {
"Map Image Source (None, RustMaps, RustMapApi)": "None",
"RustMaps.com Settings": {
"RustMap.com API Key": "Get Your API Key @ https://rustmaps.com/user/profile",
"Generate Staging Map": false
},
"RustMapApi Settings": {
"Render Name": "Icons",
"Image Resolution Scale": 0.5,
"File Type (Jpg, Png": "Jpg"
}
},
"Send wipe message when server wipes": true,
"Wipe Webhook url": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks",
"Send protocol message when server protocol changes": true,
"Protocol Webhook url": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks",
"Wipe messages": [
{
"Content": "@everyone",
"Webhook Override (Overrides the default webhook for this message)": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks",
"Send Mode (Always, Random)": "Always",
"Embed": {
"Enabled": true,
"Title": "{server.name}",
"Description": "The server has wiped!",
"Url": "",
"Embed Color": "#de8732",
"Image Url": "attachment://map.jpg",
"Thumbnail Url": "",
"Fields": [
{
"Title": "Seed",
"Value": "[{world.seed}](https://rustmaps.com/map/{world.size}_{world.seed})",
"Inline": true,
"Enabled": true
},
{
"Title": "Size",
"Value": "{world.size}M ({world.size!km^2}km^2)",
"Inline": true,
"Enabled": true
},
{
"Title": "Protocol",
"Value": "{server.protocol.network}",
"Inline": true,
"Enabled": true
},
{
"Title": "Click & Connect",
"Value": "steam://connect/{server.address}:{server.port}",
"Inline": false,
"Enabled": true
}
],
"Footer": {
"Icon Url": "",
"Text": "",
"Enabled": true
}
}
}
],
"Protocol messages": [
{
"Content": "@everyone",
"Webhook Override (Overrides the default webhook for this message)": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks",
"Send Mode (Always, Random)": "Always",
"Embed": {
"Enabled": true,
"Title": "{server.name}",
"Description": "The server protocol has changed!",
"Url": "",
"Embed Color": "#de8732",
"Image Url": "",
"Thumbnail Url": "",
"Fields": [
{
"Title": "Protocol",
"Value": "{server.protocol.network}",
"Inline": true,
"Enabled": true
},
{
"Title": "Previous Protocol",
"Value": "{server.protocol.previous}",
"Inline": true,
"Enabled": true
},
{
"Title": "Mandatory Client Update",
"Value": "This update requires a mandatory client update in order to be able to play on the server",
"Inline": false,
"Enabled": true
},
{
"Title": "Click & Connect",
"Value": "steam://connect/{server.address}:{server.port}",
"Inline": false,
"Enabled": true
}
],
"Footer": {
"Icon Url": "",
"Text": "",
"Enabled": true
}
}
}
]
}{
"NoPermission": "You do not have permission to use this command",
"SentWipe": "You have sent a test wipe message",
"SentProtocol": "You have sent a test protocol message",
"Help": "Sends test message for plugin\n{0}{1} wipe - sends a wipe test message\n{0}{1} protocol - sends a protocol test message\n{0}{1} - displays this help text again"
}更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。