Config Comments + Auto Updating config per version.

Discussion in 'Plugin Development' started by kayc01, Dec 5, 2015.

Thread Status:
Not open for further replies.
  1. Hey, I have a little issue, where my plugin config i try use comments.
    For this i use

    Code:
    saveDefaultConfig();
    But when i make changes to the config for the next version of the plugin (add a new key) it does not add it in to the current config on the server. (Does not update the config with new tags when there is new keys/name tags needed)

    So this means the config must be deleted so it can generate an up to date one. Which is a pain because there is a lot of settings in the config.

    Any idea how to fix? Any easy option or what sort of method would i need to create if someone can mock one up/create one?

    Thanks :D
     
  2. Offline

    mcdorli

    Bukkit doesn't save config comments, ypu nees to do value changing manually with fileWriters
     
  3. Could you give me an example please? :)
     
  4. Offline

    CraftCreeper6

Thread Status:
Not open for further replies.

Share This Page