/FileExtraction/Java_unseen/DarkiBoi_Osiris/src/main/java/me/finz0/osiris/util/CapeUtils.java
package me.finz0.osiris.util;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class CapeUtils {
    List<UUID> uuids = new ArrayList<>();
    public CapeUtils(){
        try {
            URL pastebin = new URL("https://pastebin.com/raw/kikTk9zJ");
            BufferedReader in = new BufferedReader(new InputStreamReader(pastebin.openStream()));
            String inputLine;
            while ((inputLine = in.readLine()) != null) {
                uuids.add(UUID.fromString(inputLine));
            }
        } catch(Exception e){}
    }

    public boolean hasCape(UUID id){
        return uuids.contains(id);
    }
}
