How Do I Delete Things From My Config?

Discussion in 'Plugin Development' started by Junrall, Jun 23, 2012.

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

    Junrall

    So, I have this within my config file:
    Code:
      Restrictions:
        NoBuild: true
        NoSwitches: true
    How can I delete NoSwitches from the config?

    Thanks in advance!

    Neeeeever mind! Here is how its done:

    Code:
    getConfig().set("Restrictions.NoSwitches", null);
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
Thread Status:
Not open for further replies.

Share This Page