AutoCode
Automatically sets the code on code locks when placed.Allow players to automatically try and unlock locked code locks with their code.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>.- autocode.use - Allows use of this plugin.
- autocode.try - Allows auto-trying of user auto-code on locked code locks.
- autocode.admin - Allows use of admin commands.
Chat Commands
Core Commands
You refers to the player running the command.- code 1234 - Sets your auto-code to 1234.
- code random - Sets your auto-code to a random code.
- code remove - Removes your set auto-code (and guest auto-code).
- code guest 5678 - Sets your guest code to 5678.
Other Commands
- code quiet - Toggle quiet mode. In this mode less messages will be displayed and your auto-code will be hidden.
- code help - Shows a detailed help message.
Console Commands
Requires autocode.admin to use.- autocode.resetlockout * - Removes all lock outs for all players.
- autocode.resetlockout playerSteamId_or_playerDisplayName - Removes lock out for the specified player.
Configuration
The settings and options can be configured in the AutoCode file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.Default configuration:
Explained
- Commands - Change the commands this plugin uses.
- Use - Used to set the player's code.
- Options
- Display Permission Errors - If set to false, players won't be notified if they don't have the right permissions to use this plugin.
- Spam Prevention - Prevent players from changing their code too often to prevent abuse.
- Enable - Whether spam protection is enabled or not.
- Attempts - The number of code changes the player can make with in Window Time before being marked as spamming.
- Window Time - The time frame (in seconds) to count the number of code changes the player has made.
- Lock Out Time - How long (in seconds) a player will be locked out for. This number should be low if using exponential lock out times.
- Exponential Lock Out Time - If true, each time the player is locked out, they will be locked out for double the amount of time they were previously locked out for.
- Lock Out Reset Factor - Determines how long (as a multiples of lock out time) before the player is forgive for all previous lockout offenses (should be greater than 1 - has no effect if not using exponential lock out time).