Jump to content

limits are not changing

Not a Bug 2.0.3

Ondraasek
Ondraasek

Posted

Hey,

I made huge changes at config file and saved it, but everytime I reload plugin or restart server, it rewrites my config to default values. All the time. Can you advise? thanks a lot

I changed my config to these values:

{

  "Enable GameTip notifications": true,

  "Enable notifications in chat": false,

  "Chat steamID icon": 0,

  "Commands list": [

    "limits",

    "limit"

  ],

  "Warn about less then % of limit": 0.2,

  "Permissions": [

    {

      "Permission": "limitentities.default",

      "Priority": 0,

      "Limits Global": {

        "Limit Total": 15000,

        "Limits Entities": {

          "assets/prefabs/deployable/playerioents/lights/simplelight.prefab": 50,

          "assets/prefabs/deployable/tool cupboard/cupboard.tool.deployed.prefab": 10,

          "assets/prefabs/deployable/campfire/campfire.prefab": 8,

          "assets/prefabs/deployable/furnace/furnace.prefab": 15,

          "assets/prefabs/deployable/furnace.large/furnace.large.prefab": 15,

          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 5,

          "assets/prefabs/misc/xmas/poweredlights/xmas.advanced.lights.deployed.prefab": 50,

          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 8,

          "assets/prefabs/deployable/oil jack/mining.pumpjack.prefab": 2,

          "assets/prefabs/deployable/oil refinery/refinery_small_deployed.prefab": 15,          

          "assets/prefabs/deployable/ceiling light/ceilinglight.deployed.prefab": 100,

          "assets/prefabs/deployable/quarry/mining_quarry.prefab": 2          

        }

      },

      "Limits Building": {

        "Limit Total": 15000,

        "Limits Entities": {

          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 5,

          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 8

        }

      }

    },

    {

      "Permission": "limitentities.vip",

      "Priority": 1,

      "Limits Global": {

        "Limit Total": 5000,

        "Limits Entities": {

          "assets/prefabs/building core/foundation.triangle/foundation.triangle.prefab": 500,

          "assets/prefabs/building core/foundation/foundation.prefab": 500,

          "assets/prefabs/building core/roof.triangle/roof.triangle.prefab": 400,

          "assets/prefabs/building core/roof/roof.prefab": 400

        }

      },

      "Limits Building": {

        "Limit Total": 2000,

        "Limits Entities": {

          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 15,

          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 15

        }

      }

    },

    {

      "Permission": "limitentities.elite",

      "Priority": 1,

      "Limits Global": {

        "Limit Total": 10000,

        "Limits Entities": {

          "assets/prefabs/building core/foundation.triangle/foundation.triangle.prefab": 2000,

          "assets/prefabs/building core/foundation/foundation.prefab": 2000,

          "assets/prefabs/building core/roof.triangle/roof.triangle.prefab": 1000,

          "assets/prefabs/building core/roof/roof.prefab": 1000

        }

      },

      "Limits Building": {

        "Limit Total": 5000,

        "Limits Entities": {

          "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 20,

          "assets/prefabs/deployable/windmill/windmillsmall/electric.windmill.small.prefab": 20

        }

      }

    }

  ],

  "Log Level (Debug, Info, Warning, Off)": "Off"

}

Ondraasek

Posted

Figured it out, I just need to unload plugin first, change config and then load again.

MON@H

Posted

Yes. Just in case, it's best to always unload the plugin before making changes to the configuration file. And, of course, create backups.

MON@H

Posted

Changed Status from Pending to Not a Bug

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
155k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.