VisEntities
Blocks the deployment of key and code locks on certain entities

Supported Games
GameServerKingsGameServerKings

This plugin prevents players from placing locks on entities like doors, boxes, tool cupboards, and others specified in the config. It also allows you to block the deployment of either type of lock—key or code lock—separately. Once loaded, the plugin will review all existing locked entities on the server to determine if their locks should be removed.

Demonstration


Permissions

  • nolocks.bypass - Allows to ignore lock deployment restrictions.

Configuration

{
  "Version": "3.0.0",
  "Remove Locks On Startup": false,
  "Entity Groups": [
    {
      "Prefab Short Names": [
        "cupboard.tool.deployed",
        "box.wooden.large",
        "woodbox_deployed"
      ],
      "Allow Code Lock Deployment": false,
      "Allow Key Lock Deployment": true
    },
    {
      "Prefab Short Names": [
        "wall.frame.garagedoor",
        "door.hinged.metal"
      ],
      "Allow Code Lock Deployment": true,
      "Allow Key Lock Deployment": false
    },
    {
      "Prefab Short Names": [
        "locker.deployed",
        "fridge.deployed"
      ],
      "Allow Code Lock Deployment": true,
      "Allow Key Lock Deployment": true
    }
  ]
}

Localization

{
  "DeployCodeLockBlocked": "Code locks cannot be deployed on this entity.",
  "DeployKeyLockBlocked": "Key locks cannot be deployed on this entity."
}

Need Help or Found a Bug?

Please open a thread in the support section of this plugin's page. If you want quicker help or to reach me directly, join my Discord.


Credits

  • Rewritten from scratch and maintained to present by VisEntities
  • Originally created by Orange, up to version 1.0.0
MIT License

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.