Problem/Bug IntegerList YamlFile

Discussion in 'Plugin Help/Development/Requests' started by ScorixEar, Jun 20, 2015.

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

    ScorixEar

    Hi guys and girls,
    I created a file like this:
    Code:
    Kits:
      '1':
        Name: Starter
        Inventaritem: 1
        Items:
        - 1
        - 2
        - 3
        - 4
      '0':
        Name: Test
        Inventaritem: 1
        Items:
        - 1
        - 2
        - 3
        - 4
      '4':
        Name: Test2
        Inventaritem: 1
        Items:
        - 1
        - 2
        - 3
        - 4
      '2':
        Name: test3
        Inventaritem: 1
        Items:
        - 1
        - 2
        - 3
        - 4
      '3':
        Name: test4
        Inventaritem: 1
        Items:
        - 1
        - 2
        - 3
        - 4
    and i want the Size of kits (in the end there should stand 5)
    I used this:
    Code:
    p.sendMessage(""+Pvpsystem.getInstance().getRawKitsFile().getConfigurationSection("Kits").getIntegerList("Kits").size());
    and there stands 0
     
  2. Offline

    ScorixEar

Thread Status:
Not open for further replies.

Share This Page