Config

Discussion in 'Plugin Development' started by plarsootje, Dec 14, 2014.

Thread Status:
Not open for further replies.
  1. Is it possible, if yes any help welcome

    So i have some default YML files in my jar, But when the plugin gets updated and i added a new features that uses one of the files can i check if the config has the line if not add it so it always stays check the default config from the jar and check if there are some things missing

    If you don't understand please ask just need to know how i need to do this

    Thanks by advance
     
  2. Offline

    Skionz

  3. @Skionz Ok but if i update the plugin the config inside the jar file has the latest version, but not the file in the plugin folder, so i need to check if there are changes inside the jar file, and those changes need to be added to the file in the plugin folder
     
  4. Offline

    Skionz

    @plarsootje Oh I understand now. I'm not sure if you can read a YAML file from the jar with the FileConfiguration API but you can get it as a stream.
     
Thread Status:
Not open for further replies.

Share This Page