Solved MemorySection = YamlConfiguration

Discussion in 'Plugin Development' started by Dzikoysk, Feb 19, 2014.

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


    Hello. When I get simple value from custom yaml configuration, some values are:
    My code:
    1. YamlConfiguration yml = YamlConfiguration.loadConfiguration(file);
    2. String ret = yml.getString(v); //or get(v);
    3. ret = ret.replaceAll("Ä", ""); // Text
    4. ret = ret.replaceAll("Â", ""); // Color
    5. return new String[] { ret };
    Where 'v' is "payitem"
    My config:
    payitem: true
    Whatever. YamlConfiguration read 'payitem' as list, because under was 'payitem.slot.1' :X

    To close.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 6, 2016
Thread Status:
Not open for further replies.

Share This Page