Config: Skipping A Line

Discussion in 'Spigot Plugin Development' started by Bladian, May 11, 2015.

Thread Status:
Not open for further replies.
  1. I basically set my config like this:

    Code (Text):
    fileConfiguration.set("chest-name", "MOUNTS");
    fileConfiguration.set("mounts.chicken", "Chicken");
    fileConfiguration.set("mounts.cow", "Cow");
    fileConfiguration.set("mounts.pig", "Pig");
    Is there any way, I can skip a line after the chest-name? It's just to make it look more organised.
  2. konsolas


    Create the file 'config.yml' in your plugin's root directory, with all the defaults. You can also add comments wherever you like.

    Replace all your onEnable code with saveDefaultConfig()
    • Agree Agree x 1
  3. Sorry, wasn't detailed enough.

    I know that method, but unfortunately my config is custom (language.yml).
    • Winner Winner x 1
  4. Iterate through each line of the file stored in your jar file and write it to the disk, or use the method Bukkit provides you.
Thread Status:
Not open for further replies.