Question about Limiting in configs

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

  1. I am trying to limit the amount of entries in a config.Kinda like this
    Code (YAML):

    Owner
    :
      28180efe-088e-31f7-8add-1e96b0e91e99
    : CraftPlayer{name=xTheGamerPlayz}
      Claim1
    :
        Xp
    : 1
       Claim2
    :
        Xp
    : 2
      Claim3
    :
        Xp
    : 3
     
    I am not sure how to do this and cannot think of a way to do it. Can someone point me to an idea or example of a way to do this?
     
  2. setString("Owner."+p.getUniqueId, player.toString())
     
  3. The DOT is the key