Changing a YAML file key path

Discussion in 'Plugin Development' started by kmecpp, Sep 25, 2014.

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

    kmecpp

    I'm trying to change the paths for the keys in a yaml file but there doesn't appear to any helpful method to do this. I really don't feel like writing to the file manually to change the paths so does anyone know if there's a simple way to edit the names of the config keys?
     
  2. Offline

    CoolGuy2001

    Code:
    getConfig().set("ExistingPath", null);
    getConfig().set("YourNewPath", YourValue);
    This will change it by removing the old one, and setting the new one. Insert your variables.
     
Thread Status:
Not open for further replies.

Share This Page