Solved Getting config values

Discussion in 'Spigot Plugin Development' started by GCNT, Jun 17, 2018.

  1. Hey spigot.

    I made a /warps command which send all warp names to a player. But if i use this code:
    Code (Java):
    getConfig().getValues(false)
    it will return this:
    Code (warpsstring (Unknown Language)):

    {test=MemorySection[path='test', root='YamlConfiguration'], idk=MemorySection[path='idk', root='YamlConfiguration']}
     
    But i only want it to return:
    Code (warps (Unknown Language)):

    test, idk
     
    Can someone tell me how to do this?
     
  2. JanTuck

    Supporter

    getKeys is probably what you want
     
    • Agree Agree x 2
  3. THanks, i'm dumb :p