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

Supported Games
GameServerKingsGameServerKings

Introduction

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

Commands

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

Permissions

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

Configuration

{
  "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
}

Thanks to

Shady757 for help :)

BuzZ_PHOQUE for providing French translations

This plugin is unlicensed and the original author reserves all rights to it.

The original author may request that this plugin be removed and there is a risk that the plugin may be unavailable in the future.

Note that the current maintainer may not have permission to assign a license to the plugin if they are not the original author, so explicit permission would need to be obtained from the original author in order for the plugin to remain openly available and guarantee that it will be around for all to enjoy going forward.