Config - Checking if section exists

Discussion in 'Plugin Development' started by libraryaddict, Oct 26, 2012.

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

    libraryaddict

    I have a section called "Teleports"
    But if a user deletes this then this should return null right?

    Code:
    getConfig().getIntegerList("Teleports")
    Well it doesn't. It seems to return the defaults which is not what Im trying to achieve.
    How can I check if the users config contains it?

    I've tried getConfig().contains("Teleports")
     
  2. Offline

    libraryaddict

  3. Offline

    md_5

    Could always use isSet(..)
     
  4. Offline

    Lolmewn

    Ah, that's what I was looking for :) Thanks!
     
Thread Status:
Not open for further replies.

Share This Page