package io.github.Cnly.Crafter.Crafter.utils;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;

import org.bukkit.plugin.java.JavaPlugin;

public class ResourceUtils
{
    
    private ResourceUtils()
    {
        throw new AssertionError("This is a util class");
    }
    
    public static void copyFromJar(JavaPlugin jp, String location, File dest)
            throws IOException
    {
        IOUtils.copyFileFromStream(
                jp.getResource(location.startsWith("/") ? location.substring(1)
                        : location), dest);
    }
    
}

@@ -92,68 +92,8 @@
 ion;
-%0Aimport java.io.InputStream;%0Aimport java.lang.reflect.Field;
 %0A%0Aim

Remove unused imports