[SOLVED]Configuration file: deleting a node

Discussion in 'Plugin Development' started by The Zombie Blarger, Nov 13, 2011.

Thread Status:
Not open for further replies.
  1. How do I delete a node? removeProperty() only sets the values to 0.0

    :confused:
     
  2. Offline

    Sagacious_Zed Bukkit Docs

  3. Last edited by a moderator: May 21, 2016
  4. Offline

    bergerkiller

    @The Zombie Blarger you set it to null? When a node ends up without values or children, it is basically a dead node and is removed from the configuration as well.
     
  5. I did set it to null, however it still existed, and i was using if(getNode()==null)

    However, i realized after you set it to null, and all its values and children are stripped from it, You can removeProperty() and it will wipe it out of the config. Problem solved >:D
     
Thread Status:
Not open for further replies.

Share This Page