插件介绍
将服务器/玩家通知发送到 Discord 频道
Notify To Discord can use a discord Bot, or a webhook via plugin DiscordMessages.
With this version, it needs your Bot to have already been used. To be fixed (first gateway message to activate Bot http requests).
(by exemple, set your Bot once in "Rustcord" plugin. After initialized with it, your Bot will work with NotifyToDiscord)
Set your bot Token and Discord Channel ID in config file. Set true/false from the differents hooks available.
主要用途
主要用于Discord 联动、notifications、unmaintained等服务端功能。 本插件由 发布,当前目录记录版本为 v0.0.12,uMod 累计下载 11,918 次。
适用场景
- 希望扩展原版服务器功能的服主
功能分类
查看 uMod 官方英文简介
Sends server/player notifications to a Discord Channel
相关依赖
- Better Chat
- Dangerous Treasures
- Discord Messages
- Hooks Extended
配置说明
Set your bot Token and Discord Channel ID in config file. Set true/false from the differents hooks available.
{ "Chat Settings": { "ChatColor": "#b7f5ff", "Prefix": "[NTD] :", "PrefixColor": "#42d7f4" }, "Discord Settings": { "BotToken": "KihiohjJhihJojijiohLKKTY5NjI1NjIw.DkE83Q.zkbyl0MlwKgZ8MGL144cyzCyjZI", "ChannelID": "36982456219753170304" }, "NOTIFY -=- ADMIN": { "Group granted permission": true, "Group revoked permission": true, "Player Banned": true, "Player Kicked": true, "Player Unbanned": true, "User granted permission": true, "User revoked permission": true }, "NOTIFY -=- BOTS -=- APC/NPC": { "BRADLEY APC on hunt": true }, "NOTIFY -=- HACK VIOLATION": { "Player Hack Violation": true }, "NOTIFY -=- MESSAGES -=- PLAYER/SERVER": { "On Player Chat message": true, "On Server message": true }, "NOTIFY -=- PLANE/HELI": { "airdrop": true, "CH47 has been killed": true, "CH47 is under attack": true, "Hack of Crate has ended": true, "Hack of Crate has started": true, "Hackable Crate Dropped": true }, "NOTIFY -=- PLAYER -=- ACTIONS/ENTITY": { "codelock change": true, "Player has dismounted": true, "Player is trying to dismount": true, "Player is trying to mount": true, "Player tries to unlock": true, "Players has mounted": true }, "NOTIFY -=- PLAYER -=- CONNECT/SPAWN/SLEEP": { "Player has Connected": true, "Player has Disconnected": true, "Player Respawn": true, "Player Respawned": true, "Player Sleep Ended": true, "Player Sleep Started": true, "Player Spawn": true }, "NOTIFY -=- PLAYER -=- ELSE": { "Player changed name": true, "Player is speaking in a microphone": true, "Player updated name": false }, "NOTIFY -=- PLAYER -=- FIGHT": { "Player is attacking": true }, "NOTIFY -=- PLAYER -=- HEALTH/KILL/DEMOLISH": { "Killed entity": true, "Player demolishing entity": true, "Player Die": true, "Player wounded": true }, "NOTIFY -=- PLAYER -=- LOOT": { "Player is looting item": true, "Player Loot Entity": true, "Player Loot Player": true }, "NOTIFY -=- SERVER -=- PLUGIN": { "Plugin Loaded": true, "Plugin Unloaded": true, "RCon Command": true, "RCon Connection": true, "Server Save": true }, "NOTIFY -=- SHOP -=- BONUS": { "a door has been knocked": true, "a Player is accessing a mailbox": true, "New sell offer added in VendingMachine": true, "Player customer has complete a shop trade": true, "player receive bonus item": true, "player start a oven": true, "player update a sign": true }, "NOTIFY -=- SPECTATE": { "Player Spectate": true, "Player Spectate End": true }, "NOTIFY BONUS -=- ONLINE PLAYERS REPORTER -=-": { "Report online players count; refresh on players connections and every 15min": true }, "NOTIFY DANGEROUS TREASURES -=- MESSAGE -=-": { "DangerousTreasures message to player": true }, "NOTIFY EXTENDED -=- BOTS -=- APC/NPC": { "NPC is attacking entity": true }, "NOTIFY EXTENDED -=- HELI/PLANE -=- ": { "Chinook spawned": true, "Helicopter spawned": true }, "NOTIFY EXTENDED -=- PLAYER -=- MISC & ROLEPLAY": { "NPC is attacking entity": true, "player received a snapshot": true }, "NOTIFY EXTENDED -=- VEHICLE -=- ": { "Player using car": true }, "NOTIFY HUMAN NPC -=- BOTS -=- ": { "HumanNPC reaches a waypoint and changes to an other": false, "player approaching a HumanNPC": false }, "PLAYER -=- ACTIONS/ENTITY": { "code entered": true }, "Settings": { "SteamIDIcon": "76561198044414155" } }
官方配置示例
{
"Chat Settings": {
"ChatColor": "#b7f5ff",
"Prefix": "[NTD] :",
"PrefixColor": "#42d7f4"
},
"Discord Settings": {
"BotToken": "KihiohjJhihJojijiohLKKTY5NjI1NjIw.DkE83Q.zkbyl0MlwKgZ8MGL144cyzCyjZI",
"ChannelID": "36982456219753170304"
},
"NOTIFY -=- ADMIN": {
"Group granted permission": true,
"Group revoked permission": true,
"Player Banned": true,
"Player Kicked": true,
"Player Unbanned": true,
"User granted permission": true,
"User revoked permission": true
},
"NOTIFY -=- BOTS -=- APC/NPC": {
"BRADLEY APC on hunt": true
},
"NOTIFY -=- HACK VIOLATION": {
"Player Hack Violation": true
},
"NOTIFY -=- MESSAGES -=- PLAYER/SERVER": {
"On Player Chat message": true,
"On Server message": true
},
"NOTIFY -=- PLANE/HELI": {
"airdrop": true,
"CH47 has been killed": true,
"CH47 is under attack": true,
"Hack of Crate has ended": true,
"Hack of Crate has started": true,
"Hackable Crate Dropped": true
},
"NOTIFY -=- PLAYER -=- ACTIONS/ENTITY": {
"codelock change": true,
"Player has dismounted": true,
"Player is trying to dismount": true,
"Player is trying to mount": true,
"Player tries to unlock": true,
"Players has mounted": true
},
"NOTIFY -=- PLAYER -=- CONNECT/SPAWN/SLEEP": {
"Player has Connected": true,
"Player has Disconnected": true,
"Player Respawn": true,
"Player Respawned": true,
"Player Sleep Ended": true,
"Player Sleep Started": true,
"Player Spawn": true
},
"NOTIFY -=- PLAYER -=- ELSE": {
"Player changed name": true,
"Player is speaking in a microphone": true,
"Player updated name": false
},
"NOTIFY -=- PLAYER -=- FIGHT": {
"Player is attacking": true
},
"NOTIFY -=- PLAYER -=- HEALTH/KILL/DEMOLISH": {
"Killed entity": true,
"Player demolishing entity": true,
"Player Die": true,
"Player wounded": true
},
"NOTIFY -=- PLAYER -=- LOOT": {
"Player is looting item": true,
"Player Loot Entity": true,
"Player Loot Player": true
},
"NOTIFY -=- SERVER -=- PLUGIN": {
"Plugin Loaded": true,
"Plugin Unloaded": true,
"RCon Command": true,
"RCon Connection": true,
"Server Save": true
},
"NOTIFY -=- SHOP -=- BONUS": {
"a door has been knocked": true,
"a Player is accessing a mailbox": true,
"New sell offer added in VendingMachine": true,
"Player customer has complete a shop trade": true,
"player receive bonus item": true,
"player start a oven": true,
"player update a sign": true
},
"NOTIFY -=- SPECTATE": {
"Player Spectate": true,
"Player Spectate End": true
},
"NOTIFY BONUS -=- ONLINE PLAYERS REPORTER -=-": {
"Report online players count; refresh on players connections and every 15min": true
},
"NOTIFY DANGEROUS TREASURES -=- MESSAGE -=-": {
"DangerousTreasures message to player": true
},
"NOTIFY EXTENDED -=- BOTS -=- APC/NPC": {
"NPC is attacking entity": true
},
"NOTIFY EXTENDED -=- HELI/PLANE -=- ": {
"Chinook spawned": true,
"Helicopter spawned": true
},
"NOTIFY EXTENDED -=- PLAYER -=- MISC & ROLEPLAY": {
"NPC is attacking entity": true,
"player received a snapshot": true
},
"NOTIFY EXTENDED -=- VEHICLE -=- ": {
"Player using car": true
},
"NOTIFY HUMAN NPC -=- BOTS -=- ": {
"HumanNPC reaches a waypoint and changes to an other": false,
"player approaching a HumanNPC": false
},
"PLAYER -=- ACTIONS/ENTITY": {
"code entered": true
},
"Settings": {
"SteamIDIcon": "76561198044414155"
}
}更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由本站已校验的本地缓存提供作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。