插件介绍
以资源为代价的可配置在线和/或离线突袭保护
This version of Raid Protection (v.2.1.10) is no longer being updated, but will remain here on this site for those who wish to use it.
The new version, that has been completely rewritten from the ground up, is available here:
Raid Protection V3
Here are some brand new features that come with the new version:
主要用途
主要用于protection、homes、scrap、cupboard等服务端功能。 本插件由 mr01sam 发布,当前目录记录版本为 v2.1.10,uMod 累计下载 21,983 次。
适用场景
- PVP、战斗或攻防玩法服务器
- 带经济、商店、礼包或奖励系统的服务器
功能分类
查看 uMod 官方英文简介
Configurable online and/or offline raid protection at the cost of a resource
权限节点
raidprotection.level.X - Sets the protection level for a playerThe X should be a number corresponding to a protection level defined in the configuration fileSo for example, raidprotection.level.0 will assign a player the lowest protection levelIf a player is assigned multiple protection levels, the highest one is the one that will be used (even if its worse)
raidprotection.admin - Allows the player to see full information with the /protection command, even when they are not authorized in the building zone. NOTE: If you have this permission, then you will NOT count as an authorized player for a toolcupboard. Revoke this permission if you wish to receive protection.
The X should be a number corresponding to a protection level defined in the configuration file
So for example, raidprotection.level.0 will assign a player the lowest protection level
If a player is assigned multiple protection levels, the highest one is the one that will be used (even if its worse)
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
指令说明
/protection - Displays protection information on the current building zone. Players who are authed in that zone will see full information while unauthed players will see only limited details.
相关依赖
- Economics
- Image Library
- Server Rewards
配置说明
Be sure to always delete your old configuration file if you are upgrading from an older minor release!
Currency item ID:The internal ID of the item that will be used for the protection balance. By default this is set to -932201673 which is the ID for Scrap. A list of item IDs can be found here!
Use economics balance:If set to true then the currency from the Economics plugin will be used instead of the item specified by Currency item ID
Use reward points:If set to true then the currency from the Server Rewards plugin will be used instead of the item specified by Currency item ID
The internal ID of the item that will be used for the protection balance. By default this is set to -932201673 which is the ID for Scrap. A list of item IDs can be found here!
If set to true then the currency from the Economics plugin will be used instead of the item specified by Currency item ID
If set to true then the currency from the Server Rewards plugin will be used instead of the item specified by Currency item ID
Protection levels:You can define any number of Protection Levels which can be assigned to a player (see permissions). A protection level can have the following attributes:Online protection percentage:The amount of protection a protected area receives when atleast one of its authorized players is online. Must be a number between 0 - 100.Offline protection percentage:The amount of protection a protected area receives when all of the authorized players are offline. Must be a number between 0 - 100.Hourly building cost (optional):Overrides the default hourly building cost.Hourly base cost (optional):Overrides the default hourly base cost.Structure damage cost (optional):Overrides the default structure damage cost.
Delay after taking damage:The amount of delay in seconds after taking damage before protection can be started.
Delay for offline protection:The amount of delay in seconds after the last authorized player disconnects before offline protection begins. (Only applicable if they have no Online protection and do have Offline protection).
Protect buildings and deployables:If set to true then all building blocks, containers, and deployables (excluding traps and electronics) will be protected.
Protect players:If set to true then all players in the building area will be protected.
Protect vehicles and horses:If set to true then all vehicles and mountable entities (such as horses) will be protected.
You can define any number of Protection Levels which can be assigned to a player (see permissions). A protection level can have the following attributes:Online protection percentage:The amount of protection a protected area receives when atleast one of its authorized players is online. Must be a number between 0 - 100.Offline protection percentage:The amount of protection a protected area receives when all of the authorized players are offline. Must be a number between 0 - 100.
Hourly building cost (optional):Overrides the default hourly building cost.
Hourly base cost (optional):Overrides the default hourly base cost.
Structure damage cost (optional):Overrides the default structure damage cost.
Online protection percentage:The amount of protection a protected area receives when atleast one of its authorized players is online. Must be a number between 0 - 100.
Offline protection percentage:The amount of protection a protected area receives when all of the authorized players are offline. Must be a number between 0 - 100.
The amount of protection a protected area receives when atleast one of its authorized players is online. Must be a number between 0 - 100.
The amount of protection a protected area receives when all of the authorized players are offline. Must be a number between 0 - 100.
Overrides the default hourly building cost.
Overrides the default hourly base cost.
Overrides the default structure damage cost.
The amount of delay in seconds after taking damage before protection can be started.
官方配置示例
"Protection levels": {
"0": {
"Online protection percentage (0-100)": 0.0,
"Offline protection percentage (0-100)": 100.0
},
"1": {
"Online protection percentage (0-100)": 100.0,
"Offline protection percentage (0-100)": 100.0,
"Hourly building cost" : 10,
"Hourly base cost" : 90,
"Cost per damage": 0.1
}
},{
"General settings": {
"Currency item ID (if not using economics)": -932201673,
"Use economics balance (requires economics plugin)": false,
"Use reward points (requires server rewards plugin)": false
},
"Protection settings": {
"Protection levels": {
"0": {
"Online protection percentage (0-100)": 100.0,
"Offline protection percentage (0-100)": 100.0
}
},
"Delay after taking damage (seconds)": 10,
"Delay for offline protection (seconds)": 600,
"Protect buildings and deployables (true/false)": true,
"Protect players (true/false)": true,
"Protect vehicles and horses (true/false)": true,
"Protect traps and electronics (true/false)": true
},
"Cost settings": {
"Material cost multipliers": {
"twig": 1.0,
"wood": 1.0,
"stone": 1.0,
"metal": 1.0,
"armored": 1.0
},
"Default hourly building cost": 1.0,
"Default hourly base cost": 9.0,
"Default structure damage cost": 0.0
},
"Indicator settings": {
"Enabled": true,
"Persistent": false,
"Image url": "https://i.imgur.com/ue05FGg.png"
}
}更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。