[Java] Similar Bukkit Config API?

Discussion in 'Spigot Plugin Development' started by ItsErik, Mar 14, 2017.

  1. I am looking for an API or a Util that is similar to the Bukkit config. I do not really care how it is stored (json, yaml, etc.) But I want it to be in easy methods like
    Code (Text):
    config.set("path", object);
    and
    Code (Text):
    config.getString("path");
    . Does anyone know any good api's?

    Thanks ahead of time for those who reply!

    EDIT: This is not for a Plugin
     
  2. I believe that under the hood bukkit uses SnakeYaml, so you can check that out.
     
  3. I looked into it a little while ago. I'll go do that again. Thanks!
     
  4. Omnivion

    Patron

    hocon is pretty nifty
     
  5. NathanWolf

    Supporter

    You could just copy the MemoryConfiguration classes from the Bukkit API, as long as your project is GPL-compatible.