Check and modify files.yml inside a Folder

Discussion in 'Spigot Plugin Development' started by Dorian349, Jul 9, 2018.

  1. Hey SpigotMc Community,

    I want to know if it's possible to check a variable like "Config-Message.Message1" on every .yml files inside a folder and modify it.

    Thanks for you help :)
  2. Yes it is possible. I recommend running this async.
    1. Iterate over the files
    2. For each file try load as YAML
    3. On success check path
    4. If existing modify your value
    • Agree Agree x 2
    • Like Like x 1