Difference between FileConfiguration and YamlConfiguration?

Discussion in 'Plugin Development' started by JellyRekt, Oct 20, 2016.

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

    JellyRekt

    I'm working on a customized economy plugin that requires the use of several configuration files. I've never used more than simply config.yml. I've been using the wiki mostly, which usually shows use of the FileConfiguration object, but I've noticed in the forums that many developers choose to use YamlConfiguration.

    I was wondering, what's the difference? Is there one I should use over the other?

    Thanks,
    Jelly
     
  2. Offline

    Zombie_Striker

    YamlConfig' extends FileConfig', so when we use YamlConfig' we get all of its methods along with FileConfig's methods.

    YamlConfig' also allows us to save headers and is not synchronized. This means that large configs will not halt the server when it has to be saved or loaded.
     
    Last edited: Oct 20, 2016
Thread Status:
Not open for further replies.

Share This Page