Limit entities per player or building

Supported Games
GameServerKingsGameServerKings

Entity Limit limits entities for each player or building. For example you can limit for players the usage of High External Walls to 5. No permissions, no commands. In config file

Notes

  1. There are cache for permisisons to reduce server lag on checking permissions. New permisisons will be affected after ~10 mins
  2. If player doesnt have any permission from config -> he will be not limited
  3. If in permission entry there are no limits to entity -> it will be not limited
  4. List of entities: https://github.com/OrangeWulf/Rust-Docs/blob/master/Entities.md
  5. There are NO data files. Plugin checks all entites on server on initializing and puts it in temporary strorage

Permissions

Defined in configuration.

Commands

  • /limit or /limits - Allows player to check his global or building limits

Configuration

use ENTITY NAMES OR SHORTNAMES (not item shortnames)

{
  "Commands": [
    "buildinglimits",
    "limits",
    "limit",
    "blimit"
  ],
  "Permission cache time (seconds)": 700,
  "Warn about limits every X entities": 50,
  "Permissions": [
    {
      "Permission": "EntityLimit.default",
      "Priority": 0,
      "Limits Global": {
        "foundation": 50,
        "assets/prefabs/building core/roof/roof.prefab": 50,
        "assets/prefabs/deployable/furnace/furnace.prefab": 5,
        "*": 1000
      },
      "Limits Building": {
        "foundation": 25,
        "foundation.triangle": 25,
        "assets/prefabs/npc/autoturret/autoturret_deployed.prefab": 10
      }
    },
..........................

Credits

  • PaiN, the original developer of the plugin
  • Orange, for helping maintain the plugin

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.



10.4K downloads
135 watchers

restrictionsbuildinglimit