Apostrophes in config?

Discussion in 'Plugin Development' started by ImPhantom, Mar 8, 2014.

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

    ImPhantom

    I am having troubles with color codes in my config. And one thing i noticed is that you cant start a message with "&" in YAML so how would i force it so when were generating the config for the first time that the message is contained within apostrophes?
     
    acecheesecr14 likes this.
  2. Offline

    TopTobster5

    Make a default config in your plugin (in the same place as your plugin.yml) with a fefault message in it. Then use this.saveDefaultConfig(); in your onEnable().
     
  3. Offline

    amhokies

    ImPhantom
    I think the best way to do this is to create a default config with the apostrophes as you want it, and keep it inside the jar.
     
  4. Offline

    ImPhantom

    TopTobster5
    THANK YOU. You just saved me loads of of time.

    amhokies
    That is exactly what i did. Thank you.
     
    TopTobster5 likes this.
Thread Status:
Not open for further replies.

Share This Page