Introduction
Night Door allows you setup doors that can be only opened in time period specified in the config fileWhen 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
Commands
This plugin provides both chat and console commands using the same syntax. When using a command in chat, prefix it with a forward slash: `/`.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
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.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