免费插件

Night Door

夜门

仅允许在设定的时间段内打开选定的门

imported

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

插件介绍

仅允许在设定的时间段内打开选定的门

Night Door allows you setup doors that can be only opened in time period specified in the config file

When door/game/hatch (which shouldn't have a code lock) is time locked it will be openable only at the time period specified in the config file if the time period is not provided or time period that is provided, players wont be able to open the door/hatch/gate outside the time period and also be able to place a lock or pick it up (at any time).

This plugin also has option to automatically open all time locked door at their time period which is perfect for mazes/prisons or other server events, to enable this set "Automatic door closing/opening" to true and reload the plugin

Video showing abilities of the plugin

主要用途

主要用于imported等服务端功能。 本插件由 Slydelix 发布,当前目录记录版本为 v1.7.2,uMod 累计下载 7,724 次。

适用场景

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

功能分类

imported
查看 uMod 官方英文简介

Allows opening of selected door(s) only during set time period

权限节点

nightdoor.use - allows player to use /nd command

nightdoor.bypass - allows player to open door at any time period

nightdoor.createinterval - allows player to manage time intervals

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

指令说明

wipedoordata (server command) wipes the data file which contains list of doors

NOTE: the data file should wipe on its own when server wipe is detected

/nd add - makes the door/gate/hatch you are looking at openable only at default time period (config time!) (you must be looking at door for this to work)

/nd add [Name of time period] - makes the door/gate/hatch you are looking at openable at the specified time period (more info below)

/nd remove - makes the door/gate/hatch normal again (you must be looking at door for this to work)

/nd show- shows a sphere at positions of all time locked gates/doors/hatches

/nd info - shows if door is time locked, and if so shows the time period at which it is openable

/nd help - gives you the list of commands above with description, with time period from config file (useful for checking if the config is set up right)

/timeperiod create [name] [HH:mm] [HH:mm] - creates a new time period which can then be applied to entites

/timeperiod remove [name] - removes the specified time period

/timeperiod list - lists all time periods

Example: /timeperiod create P1 18:00 20:00 - creates a time period 2 hour long with name "P1", then typing /nd add P1 makes the door unlockable only between 18:00 and 20:00

For time periods that include 2 days (like 22:00 - 02:00) add 24 hours to last value (22:00 - 26:00)

NOTE #2: if you used version 1.4 and below you will notice that there are 2 data files in oxide\data folder... the _NEW file should be kept and the other one can be deleted

配置说明

{ "Allow admins to open time-limited door": false, "Allow players with bypass permission to open time-limited door": false, "Automatic door closing/opening": true, "Beginning time (HH:mm)": "21:00", "Don't show time to player when unable to open door": true, "End time (HH:mm)": "22:00", "Use multiple time intervals": true, "Use system (real) time": false }

官方配置示例

{
  "Allow admins to open time-limited door": false,
  "Allow players with bypass permission to open time-limited door": false,
  "Automatic door closing/opening": true,
  "Beginning time (HH:mm)": "21:00",
  "Don't show time to player when unable to open door": true,
  "End time (HH:mm)": "22:00",
  "Use multiple time intervals": true,
  "Use system (real) time": false
}

更新日志

最新版本: v1.7.2
最后版本发布: 2018-08-06
最后更新(条目): 2026-08-26

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

安装方法

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

使用前注意

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

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