1. eed

    eed

    Show on an example how to use a config file in such plug-in.
    There will be a config file of this type
    Code:
    {
      "command": [
        {
          "command1": "command1",
          "command2": "command2"
        }
      ],
    "item": [
        {
          "item1": "item1",
          "item2": "item2"
        }
    ]
    }
    Commands and items are entered by me, and in the plugin I need to know how many teams and how many items. And put in an array for later use
    THX.
     
  2. There's many ways to do it, the way I prefer is using a class for a config file and adding dictionarys / lists, or custom types to the class. Then loading the class instead, you can see examples of this in most of my plugins.