Solved Test if a path exists in a config

Discussion in 'Spigot Plugin Development' started by TheGamerPlayz, May 14, 2016.

Thread Status:
Not open for further replies.
  1. How would i test to see if a path exists in a config?
     
  2. MemorySection.contains(String path)
    MemorySection.contains(String path, boolean ignoreDefault)

    So you can do:
    Code (Java):
    if(getConfig().contains("my.unique.path.name")){
         //Config path exists
    }
     
    • Like Like x 1
    • Agree Agree x 1
Thread Status:
Not open for further replies.