Default
Resets codelock code on the targeted door

Supported Games

An admin tool to allow to reset codelock codes and clear the whitelist.

Also logs any actions in a logfile located in ...\logs\CodeReset

Chat Commands

  • /resetcode - This will enable the resetting tool.
  • /setcode - This allows the admin to set a code for themselves.

Permissions

codereset.use - Allows for funtionality of the tool.

Configuration

{
  "Code Reset": {
    "Auto disable time": 30.0,
    "Enable tool command": "resetcode",
    "Set code command": "setcode"
  }
}

Localization

{
  "NoPermission": "You lack <color=#FF0000>permission</color> to use this command.",
  "TurnedOn": "You have <color=#00FBFF>enabled</color> the code reset tool.\nThe code reset tool will <color=#FF0000>disable</color> after {0} seconds.",
  "TurnedOff": "You have <color=#FF0000>disabled</color> the code reset tool.",
  "AutoOff": "The code reset tool has been <color=#FF0000>disabled</color> automatically.",
  "NoArgs": "You require a <color=#FF0000>4</color> digit code.",
  "SetCode": "You have set your code to <color=#00FBFF>{0}</color>.",
  "ChangedCode": "You have changed the code to this lock to <color=#00FBFF>{0}</color>.",
  "NoCode": "You do not have a code set. Use the command <color=#FF0000>/{0}</color> to set your code.",
  "AlreadyUsed": "Please use <color=#FF0000>another</color> code as <color=#00FBFF>{0}</color> is already used on this door."
}

Data

Data for CodeReset can be found in ...\oxide\data\CodeReset.json

Example:

{
  "PlayerNumbers": {
    "765611000000000000": "0001", 
     "765611000000000001": "0002",
     "765611000000000002": "0003",
     "765611000000000003": "0003",
  }
}

Logging

Log files for CodeReset can be found in ...\oxide\logs\CodeReset\...

Example:

[MM/DD/YYYY HH:MM:SS] Player: Default has reset a codelock to 4444 for getBeamedKid | 765611000000000000
MIT License

Copyright (c) 2021 Default

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.