1. Hi. I`m having a problem with reading config file.
    When plugin is loaded on server, the new config is created, however it is not possible to read the list from config untill I reload plugin. So plugin does its work from second try only.
    After first loading with new config created, it gives "error2", after reloading plugin with same config, it gives random value from list, as it has to.
    Does somebody know how to fix a problem?
     

    Attached Files:

    • Test.cs
      File size:
      2.2 KB
      Views:
      27
  2. Calytic

    Calytic Community Admin Community Mod

    Code:
    void Loaded()
    {
        Config.Load();
    }
     
  3. it seems to solve a proplem, thanx!