An open API service indexing awesome lists of open source software.

https://github.com/monah-rasta/autodoors

Oxide plugin for Rust. Automatically closes doors behind players after X seconds
https://github.com/monah-rasta/autodoors

oxide plugin rust

Last synced: 2 months ago
JSON representation

Oxide plugin for Rust. Automatically closes doors behind players after X seconds

Awesome Lists containing this project

README

        

# AutoDoors

Oxide plugin for Rust. Automatically closes doors behind players after X seconds

Automatically closes doors behind players after the default amount of seconds or as set by them.

## Permissions

- `autodoors.use` -- Allows player to toggle and have automatic doors

## Chat Commands
**NOTE**: `/ad ` and `/ad ` commands must looking at a door when used

* `/ad` - Enable/Disable automatic door closing
* `/ad

## Configuration

```json
{
"Use permissions": false,
"Clear data on map wipe": true,
"Global settings": {
"Allows automatic closing of unowned doors": false,
"Exclude door controller": true,
"Cancel on player dead": false,
"Default enabled": true,
"Default delay": 5.0,
"Maximum delay": 30.0,
"Minimum delay": 5.0
},
"Chat settings": {
"Chat command": [
"ad",
"autodoor"
],
"Chat prefix": "[AutoDoors]: ",
"Chat steamID icon": 0
},
"Door Settings": {
"door.double.hinged.metal": {
"enabled": true,
"displayName": "Sheet Metal Double Door"
},
"door.double.hinged.toptier": {
"enabled": true,
"displayName": "Armored Double Door"
},
"door.double.hinged.wood": {
"enabled": true,
"displayName": "Wood Double Door"
},
"door.hinged.metal": {
"enabled": true,
"displayName": "Sheet Metal Door"
},
"door.hinged.toptier": {
"enabled": true,
"displayName": "Armored Door"
},
"door.hinged.wood": {
"enabled": true,
"displayName": "Wooden Door"
},
"floor.ladder.hatch": {
"enabled": true,
"displayName": "Ladder Hatch"
},
"floor.triangle.ladder.hatch": {
"enabled": true,
"displayName": "Triangle Ladder Hatch"
},
"gates.external.high.stone": {
"enabled": true,
"displayName": "High External Stone Gate"
},
"gates.external.high.wood": {
"enabled": true,
"displayName": "High External Wooden Gate"
},
"wall.frame.cell.gate": {
"enabled": true,
"displayName": "Prison Cell Gate"
},
"wall.frame.fence.gate": {
"enabled": true,
"displayName": "Chainlink Fence Gate"
},
"wall.frame.garagedoor": {
"enabled": true,
"displayName": "Garage Door"
},
"wall.frame.shopfront": {
"enabled": true,
"displayName": "Shop Front"
},
"shutter.wood.a": {
"enabled": true,
"displayName": "Wood Shutters"
}
},
"Version": {
"Major": 3,
"Minor": 2,
"Patch": 8
}
}
```

## Localization

```json
{
"NotAllowed": "You do not have permission to use this command",
"Enabled": "Enabled",
"Disabled": "Disabled",
"AutoDoor": "Automatic door closing is now {0}",
"AutoDoorDelay": "Automatic door closing delay set to {0}s. (Doors set by 'single' and 'type' are not included)",
"AutoDoorDelayAll": "Automatic closing delay of all doors set to {0}s",
"DoorNotFound": "You need to look at a door",
"DoorNotSupported": "This type of door is not supported",
"AutoDoorDelayLimit": "Automatic door closing delay allowed is between {0}s and {1}s",
"AutoDoorSingle": "Automatic closing of this {0} is {1}",
"AutoDoorSingleDelay": "Automatic closing delay of this {0} is {1}s",
"AutoDoorType": "Automatic closing of {0} door is {1}",
"AutoDoorTypeDelay": "Automatic closing delay of {0} door is {1}s",
"SyntaxError": "Syntax error, type '/{0} ' to view help",
"AutoDoorSyntax": "/{0} - Enable/Disable automatic door closing",
"AutoDoorSyntax1": "/{0} - Set automatic closing delay for doors, the allowed time is between {1}s and {2}s. (Doors set by 'single' and 'type' are not included)",
"AutoDoorSyntax2": "/{0} - Enable/Disable automatic closing of the door you are looking at",
"AutoDoorSyntax3": "/{0} - Set automatic closing delay for the door you are looking at, the allowed time is between {1}s and {2}s",
"AutoDoorSyntax4": "/{0} - Enable/disable automatic door closing for the type of door you are looking at. ('type' is just a word, not the type of door)",
"AutoDoorSyntax5": "/{0} - Set automatic closing delay for the type of door you are looking at, the allowed time is between {1}s and {2}s. ('type' is just a word, not the type of door)",
"AutoDoorSyntax6": "/{0} - Set automatic closing delay for all doors, the allowed time is between {1}s and {2}s."
}
```
## Hooks

```csharp
private object OnDoorAutoClose(BasePlayer player, Door door)
```
## Credits

- **Bombardir**, for the original version of this plugin
- **Wulf**, for the previous re-write of this plugin
- **Arainrr**: Previous maintainer
- **James**: Helping test plugin update before force wipe