Custom config YamlConfiguration's CopyDefaults?

Discussion in 'Plugin Development' started by Neilnet, Jan 8, 2015.

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

    Neilnet

    How would I go about trying to copyDefaults for a config file inside the jar into a custom YamlConfiguration's file?

    Code:
    YamlConfiguration shopData = YamlConfiguration.loadConfiguration(shopFile);
    
    I have no ideas how this works, I mean where does it copy the defaults from?
    Code:
    shopData.options().copyDefaults();
    
     
  2. Offline

    xTrollxDudex

  3. Offline

    Neilnet

  4. Offline

    xTrollxDudex

    Neilnet likes this.
  5. Offline

    teej107

    Neilnet likes this.
  6. Offline

    Neilnet

    EDIT: temp solved. Thanks! :)
     
    Last edited: Jan 8, 2015
Thread Status:
Not open for further replies.

Share This Page