插件介绍
睡觉时保护玩家
The plugin provides the following features to protect sleeping players. Everything is customizable.
3,4) bots and animals can lose sight of a player as soon as he goes to sleep.
This is default settings:
"trigger animal on sleeping player" - if the value is true, then animals will be able to find sleeping players and attack them.
主要用途
主要用于sleep、protection、玩家功能等服务端功能。 本插件由 Notchu 发布,当前目录记录版本为 v1.0.8,uMod 累计下载 1,946 次。
适用场景
- 希望改善玩家交互与日常体验的社区服务器
功能分类
查看 uMod 官方英文简介
Protect players while sleeping
权限节点
The permission is sleepprotection.use and 'sleepprotection.ignore'
In case if player with .ignore will attack sleeper he will damage sleeper. If Player have .ignore permission he can loot sleepers in any case.
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
配置说明
This is default settings:
{ "trigger animal on sleeping player": false, "trigger npc player on sleeping player": false, "remove sleeping players from animal targeting": true, "remove sleeping players from npc players targeting": true, "cancel damage to sleeping player": true, "cancel looting of sleeping player": true }
"trigger animal on sleeping player" - if the value is true, then animals will be able to find sleeping players and attack them.
"trigger npc player on sleeping player" - the same as previos but instead of animals - bots(like scientists)
"remove sleeping players from animal targeting" - if the value is true, then immediately after the player goes to sleep, an animal such as a bear will lose sight of him. This setting makes little sense with “trigger animal on sleeping player”: true.
"remove sleeping players from npc players targeting" - same as "remove sleeping players from animal targeting" but with npcs such as Scientists. This setting makes little sense with “trigger npc player on sleeping player”: true.
"cancel damage to sleeping player" - if true - cancel damage from player for sleepers. Does not protect from fire or starving.
"cancel looting of sleeping player" - if true - makes looting player not possible when he is sleeping.
官方配置示例
{
"trigger animal on sleeping player": false,
"trigger npc player on sleeping player": false,
"remove sleeping players from animal targeting": true,
"remove sleeping players from npc players targeting": true,
"cancel damage to sleeping player": true,
"cancel looting of sleeping player": true
}更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由本站已校验的本地缓存提供作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。