Configs

Discussion in 'Plugin Development' started by Herbert_The_Pervert, Jun 23, 2014.

Thread Status:
Not open for further replies.
  1. Hello Everyone !
    Today I am asking "How to create a config for every player"
    I want the config to be something like this (It will use a defaultconfig)

    User:
    Kills:
    Deaths:
    Joined Before:

    (Of Course those are examples)
     
  2. Offline

    mythbusterma

    Use the syntax tag so indentation doesn't break:

    Code:
    UUID:
      lastknownname:
      kills:
      deaths:
      joined_before:
    Then in your config you could create a parent tag such as "users" and go:

    Code:java
    1. FileConfiguration#getConfigurationSection("users").getKeys(false);


    Then iterate over the results.
     
  3. Offline

    ChipDev

    Good, saving them as children.
    Thats what I was putting xD
     
  4. mythbusterma Can you give me code for
    UUID:
    lastknownname:
    kills:
    deaths:
    joined_before:
    Because I am very confused with Configs
     
  5. Offline

    BungeeTheCookie

    @Hervet_The_Pervert
    wiki.bukkit.org/Configuration_API_Reference All the help you need is right there.
     
Thread Status:
Not open for further replies.

Share This Page