Config Files Help Please ^_^

Discussion in 'Plugin Development' started by Fallen_Advent, Aug 27, 2011.

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

    Fallen_Advent

    Hey guys, I am brand new to Java and Bukkit plugin development and I have a few things I need help with as I am trying to learn how to do stuff with config files.

    I need to know how to read multiple lines from 1 node such as

    Code:
    MOTD: Line #1
    Line #2
    Line #3
    Line #4
    
    Or something similar to the MCDocs plugin where I can just display a file and the formating would match the file.


    Second thing I need to know is how to make a plugin auto-generate a config file with some Pre-generated text. Sorry if these feel like something that is Pre-School level to you guys. But I am really new and I am open to learning new things. Thanks for any help you guys can provide

    Is there no one that can help me with this, I know how to read from a single line such as

    Code:
    motd1:
    motd2:
    motd3:
    
    I just want to allow users to be able to make their MOTD a custom length, without having the need to have a fixed number of lines.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
Thread Status:
Not open for further replies.

Share This Page