Setting values on config not working properly

Discussion in 'Spigot Plugin Development' started by kinukin, Jun 4, 2017.

  1. Code (Text):
            customConfig.set("path", "test");
            customConfig.set("path.to.boolean", true);

    The string value isn't showing but the boolean is showing. What is wrong here?

    config:

     
  2. Only single filed names work:

    Code (Text):
    customConfig.set("path", p.getName());
    customConfig.set("to", "test");
    This doesn't work:

    Code (Text):
    customConfig.set("path", p.getName());
    customConfig.set("path.test", "test");