Solved Config Check??

Discussion in 'Plugin Development' started by TomTheDeveloper, Feb 27, 2013.

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

    TomTheDeveloper

    How can i check it a config path is already set?
    And how can i delete it??
     
  2. Offline

    Sahee

    Want a private plugin, I can make it, just send me a message. Are you sure?
    W T F O_O

    .set("Path.", string);

    .set("Path." , null) -- deleting

    getConfigurationSection("Path." + name) == null
     
    TomTheDeveloper likes this.
  3. Offline

    Minecrell

    Well, for checking getConfig().contains("path"); would be better I think.
     
    TomTheDeveloper likes this.
  4. Offline

    TomTheDeveloper

    Thx man

    Thx Minecrell and Sahee

    And i think from minecrell is correct :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  5. Offline

    Minecrell

    TomTheDeveloper
    I'm not sure but I think Sahee's answer should work too.
     
Thread Status:
Not open for further replies.

Share This Page