Getting data from list in YML

Discussion in 'Plugin Development' started by MeZTech, May 4, 2013.

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

    MeZTech

    Ok, so for a plugin I'm making I would prefer to have an option where server owners can add as many entries as they want. So, something like:
    Code:
    CommandsForItems:
      /kick:
        item: GOLDEN_APPLE
        Amount: 32
    
    But I can keep adding as many commands as I want. How would I use getConfig().getList()?
     
  2. you cant use getList for this because its not a list, hint try iterating over the list retured by keyKeys()
     
Thread Status:
Not open for further replies.

Share This Page