Welp

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

novastosha

Well-Known Member
Jan 11, 2019
344
22
18
28
SkUnity Street
Java:
public Arena getArenaFromWorld(World world){
    List<String> arenas = config.getStringList("KitPVP.arenas.*");
    if(arenas == null){
        Bukkit.broadcastMessage("null");
    }else{
        Bukkit.broadcastMessage("not null");
        Bukkit.broadcastMessage(String.valueOf(arenas));
    }

    if(arenas != null && !arenas.isEmpty()) for(String arenaFor : arenas) {
        Bukkit.broadcastMessage(arenaFor);
//        if (((String) config.get("KitPVP.arenas." + arenaFor + ".world")).equalsIgnoreCase(world.getName())){
  //          return getArena(arenaFor);
    //    }
    }
    return null;
}
it does not return the list of arenas and its not null and it is empty