getIntegerList() returning []

Discussion in 'Plugin Development' started by thechrisanator, Dec 3, 2018.

  1. Offline

    thechrisanator

    Code:
    if (playerdatacfg.contains("player." + player.getUniqueId())) {
                int index = 0;
                System.out.println(playerdatacfg.getIntegerList("player." + player.getUniqueId() + ".stats"));
    so I have that as the code being executed, this as the file
    Code:
    player:
      ab407223-1c1e-42c9-a61a-daa722d8cdcb:
        stats:
        - 0
        - 0
        cooldown: 110.8
        contributions: []
    
    and it's returning []

    any idea as to why it's not returning a list?
     
  2. Online

    timtower Ninja on the waves Moderator

Share This Page