免费插件

Anti Offline Raid

防离线袭击

离线时取消或减少基础伤害

protectionrestrictions

原作者:Calytic · 查看 uMod 官方页面 ↗

插件介绍

离线时取消或减少基础伤害

Anti Offline Raid is a structure-related plugin that reduces the amount of damage to player structures by a percentage. The percentage decreases as time passes.

There is a default cooldown of 10 minutes before damage reductions will apply. Meaning players may not necessarily prevent a raid by going offline. This value is configurable.

Going afk for more than 5 minutes is the same as going offline.

Anti Offline Raid determines who owns a structure based on who built it, who locked it, or who authorized to use it.

主要用途

主要用于protection、restrictions等服务端功能。 本插件由 Calytic 发布,当前目录记录版本为 v1.0.4,uMod 累计下载 67,454 次。

适用场景

  • 希望扩展原版服务器功能的服主

功能分类

protectionrestrictions
查看 uMod 官方英文简介

Cancels or reduces base damage when offline

权限节点

antiofflineraid.protect

Enables offline anti-raid protection

antiofflineraid.check

Allows access to /ao chat command

授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke

指令说明

/ao "PlayerName" -- Check the Anti Offline Raid status of any active or sleeping player

/ao.fill.onlineTimes

Refresh players online times (Use on Fresh Install)

相关依赖

  • Clans

配置说明

afkMinutes (default 5)The number of minutes without moving before a player is considered "offline." Minimum is 5.

cooldownMinutes (default 10)The number of minutes after going offline that damage remains default. After cooldown has expired, damage is completely canceled (interimDamage) up until the 60 minutes (after which damageScale is used)

damageScaleThe scale of damage done to structures depending on how many hours since the owner was last onlineThe default damageScale configuration is intended to work as follows.

First 10 minutes offline - 100% damage

Between 10 and 60 minutes offline - 0% damage

Between 1 and 3 hours offline - 20% damage

Between 3 and 6 hours offline - 35% damage

Between 6 and 12 hours offline - 50% damage

Between 12 and 48 hours offline - 80% damage

After 48 hours offline - 100% damage

absoluteTimeScaleThe scale of damage done to structures depending on the current hour of the (real) dayNote that with the default configuration, all buildings are protected 90% (or receive 10% damage) between 3AM and 3:59AM.The absolute time damage scale will completely override the normal damage scale. To disable absolute time damage scale, just set it to the following value:"absoluteTimeScale": {} If the absolute time damage scale appears to use the wrong scale, ensure that your server's system time is correctly configured.

interimDamage (default 0%)The scale of damage between the cooldown and the first hour

clanShare (default false)Checks number of clan-mates online before mitigating damage

minMembers (default 1)The number of clan mates that must be online for the entire clan to be considered online

clanFirstOffline(default false)Changes whether damage is mitigated by the clan-mate who was offline the longest or the shortest

showMessage (default true)Whether or not to display gui message when a base is protected

protectionMessageThe message to show players when they hit a protected building

playSound (default false)Play a sound when damage is blocked

sound (default mod attachment)Asset path of sound to play

activityThe type of activities which constitute active play. Disabling activities will make online checking less accurate while providing a performance benefit.At least one activity is required: { "input", "loot", "respawn", "chat", "wakeup" }

With damageScale, this plugin may also increase the damage beyond 100% after a certain amount of offline time, therein making it less expensive to raid. For example, after 168 hours (1 week), raiders could do twice the damage to the structure.

This may be useful on servers without decay to help clear out old bases.

"damageScale": { "1": 0.2, "3": 0.35, "6": 0.5, "12": 0.8, "48": 1, "168": 2 }

官方配置示例

"absoluteTimeScale": {}
{
     "input",
     "loot",
     "respawn",
     "chat",
     "wakeup"
 }

更新日志

最新版本: v1.0.4
最后版本发布: 2026-06-04
最后更新(条目): 2026-07-18

本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面

安装方法

  1. 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
  2. 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
  3. 将 .cs 文件放入服务器的 oxide/plugins 目录。
  4. 观察服务端控制台,确认插件编译并成功加载。
  5. 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。

使用前注意

  • Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
  • 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
  • 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
  • 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
来源说明

中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。