config addDefault?

Discussion in 'Plugin Development' started by dvargas135, Nov 8, 2015.

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

    dvargas135

    I'm trying to make the config add two lines, this is my code:
    Code:
    getConfig().addDefault("messages", "&cEnter the password.\n&c/password <password>"
    and it gives this in the config:
    Code:
    messages: |2-
      &cEnter the password.
      &c/password <password>
    Any help is appreciated
     
  2. Offline

    AppleBabies

    Please be more specific about what you are trying to achieve. This will help people tailor answers better.
     
  3. Offline

    teej107

    @dvargas135 Add your messages in a List then add the List as a default
     
Thread Status:
Not open for further replies.

Share This Page