Discussion in 'Plugin Development' started by Jumb_1907, May 2, 2017.
I've added comments in my config.yml but when I export the plugins it's still empty
Use saveDefaultConfig(); in onEnable.
Okay this is a common misstake that people don't understand. First of all use saveDefaultConfig() that 1 thing you have to make sure.
the 2nd and most important thing: A config file should be read only! As soon as you change something in the config the comments will dissapear. So only use a config to read stuff , not save stuff. Use another file to store data.
Thank you for helping guys!
No problem Mark your thread as solved if your problem is fixed
Separate names with a comma.