[Solved] Easy way to do this (configuration problem)?

Discussion in 'Plugin Development' started by dkramer, Aug 22, 2011.

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

    dkramer

    I have a config similar to this but with much more variables:
    Code:
    anim1:
        state:
            frame: 3
    anim2:
        state:
            frame: 1
    anim3:
        state:
            frame: 5
    and let's say that I want to delete anim2 and rename anim3 to be anim2 (so it still has the same variables, just a different name). How would I go about doing this? I've messed with getNodes and Map, but I haven't gotten it to work.

    I think I found a roundabout way of doing this with getKeys() http://forums.bukkit.org/threads/question-about-looping-through-data-in-yml-files.24421/

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

Share This Page