1.9 Plugins 15 ~ Custom .yml files

Published 2016-07-19
This one is all about custom .yml files, and how to use them! They work just like the config, so I'm not explaining how to set/get/change anything inside them. Just remember to save the file after every time you change it!

I no longer have a Discord account, but you can email me at [email protected]

Spigot Javadocs: hub.spigotmc.org/javadocs/spi...
Bukkit JavaDocs: hub.spigotmc.org/javadocs/buk...

I keep my good plugins to myself, like PaintBall, Spleef, etc. I might release them later. ;) For now, here are the plugins I do have released!
www.spigotmc.org/resources/authors/bluebukkitdev.6…

All Comments (7)
  • @Ronan77ipod
    Literally only video on youtube to tell me straight up how to do this, thank you so much!
  • @tomnewton3553
    I find the easiest way to do this is in a seperate class (as you should do lol) and put this code: public void create() { data = new File(plugin.getDataFolder(), "data.yml"); if (!data.exists()) { try { data.createNewFile(); } catch(Exception e) { e.printStackTrace(); } } } which you DO NOT have to create the file at all, it is done for you. and I think it is a much cleaner and efficient method also. Nice vid!!