MiX Auto Door 1.0.0

What it does
  Closes a door a few seconds after a player opens it. The delay follows the player who opened
  the door, so each player can pick their own delay or turn it off. If someone is standing in the
  doorway when the time is up, the plugin waits and tries again every second, up to ten times, then
  leaves the door open. Garage doors are included by default. High external gates are off by
  default and can be switched on. Player choices are saved and survive restarts.

Install
  Drop plugins/MixAutoDoor.cs into carbon/plugins (Carbon) or oxide/plugins (Oxide).

Commands
  /autodoor            Show your current setting.
  /autodoor off        Stop closing doors you open.
  /autodoor on         Turn it back on with the server's default delay.
  /autodoor <seconds>  Set your own delay, for example /autodoor 10. Kept between the minimum
                       and maximum in the config.
  All players may use it, unless the config names a permission (then only players with it).
  The command name can be changed in the config.

Permissions
  None by default. If "Permission needed (empty = everyone)" is set, for example to
  mixautodoor.use, the plugin registers that permission and only players with it get auto doors.

Config highlights  (carbon/configs/MixAutoDoor.json)
  Default close delay in seconds       5
  Smallest delay a player may set      1
  Largest delay a player may set       30
  Permission needed (empty = everyone) ""
  Close garage doors too               true
  Close high external gates too        false
  Wait while a player stands in the doorway (metres, 0 = never wait; ...)   1.6  (0 to 6)
  Chat command                         autodoor

Tested
  Tested alone on Carbon 2.0.259.0 with Rust build 25454815 on 2026-09-28; runs without the rest of the MiX Server Pack.

Feedback
  Questions, bugs and ideas: MixMods Discord, discord.gg/MZCdmvFrQ, message B1.

Licence
  Free to run and change on your own servers. See LICENCE.txt.
