Solved Getting data from config (cant explain in title).

Discussion in 'Plugin Development' started by MgMaor, May 27, 2015.

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

    MgMaor

    If I have something like this
    Code:
    players:
      player1: x
      player2: y
      player3: z
    and I want to check if for example player3 is in the children values,
    do I have to create a list in the config or there is like a function that returns the children values? (player1, player2, player3)
     
  2. Offline

    caderape

  3. Offline

    justin_393

    You can literally do plugin.getConfig().getString("players.player3"); and it will return a String from player3
     
  4. Offline

    B3N909

    @MgMaor getConfigurationSection("players").getKeys(false).
     
    MgMaor likes this.
Thread Status:
Not open for further replies.

Share This Page