Solved Edited config gets reset to the one in eclipse project

Discussion in 'Plugin Development' started by davidp027, Oct 29, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    davidp027

    My config of my plugin always gets cleared on reload to the default template of it. How can I fix this ? I have no problem for the MOTD & Booleans but the rest gets reset all the time.
     
  2. Offline

    CraftCreeper6

    davidp027
    myConfig().options().copyDefaults(true); I think.
     
  3. Offline

    davidp027

    it breaks my config if i remove that :/
     
  4. Offline

    wesley27

    davidp027 Mind posting your code where you load/reload/save the config so that we can take a look?
     
  5. Offline

    kreashenz

    Use saveDefaultConfig() in the onEnable, that is how I do it and it works fine.
     
  6. Offline

    davidp027

    Worked , thanks
     
Thread Status:
Not open for further replies.

Share This Page