Config not generating, please help.

Discussion in 'Plugin Development' started by n31ln3t, Sep 2, 2013.

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

    n31ln3t

    This is my code for the main class: http://pastebin.com/t9fVBNqN

    It uses getConfig().options().copyDefaults(true); the method that BCBroz mentioned in his video.

    In my config file in eclipse, I have a node called Kits:


    It doesn't copy it when it creates a config file on the server.
     
  2. Offline

    Jade

    Moved to correct section.
     
    n31ln3t likes this.
  3. Offline

    n31ln3t

    Thanks.
     
  4. Offline

    Twisted_Panda

    n31ln3t
    Please, stop watching the BCBroz. Try
    Code:
            saveDefaultConfig();
            saveConfig();
     
    n31ln3t and mydeblob like this.
  5. Offline

    n31ln3t

    Hey, that didn't work, the config didn't get coppied.

    What's wrong with BCBroz?


    Thanks for your response.
     
  6. Offline

    Twisted_Panda


    Their tutorials are not well explained, and somewhat out of date.
    Post your code. + config
     
  7. Offline

    mydeblob

    n31ln3t
    TheBcBroz is a great source, but some of his videos are outdated. Do you have a config file created in the plugin? Similar to your plugin.yml?
     
    n31ln3t likes this.
  8. Offline

    n31ln3t

    Yeah, I do, it has text in it, my plugin.yml works, but not the config file :p
     
  9. Offline

    Twisted_Panda

    it looks like you're not generating anything in your plugin.
     
Thread Status:
Not open for further replies.

Share This Page