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);
    }
    
}

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

import java.io.File;
import java.io.IOException;

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);
    }
    
}

Remove unused imports