-
Notifications
You must be signed in to change notification settings - Fork 8
LibraryLoader
DevTec edited this page Mar 20, 2022
·
1 revision
downloadFileFromUrl(String url, String pathFile);
downloadFileFromUrl(String url, File file);
downloadFileFromUrl(URL url, File file);
load(File file);
boolean loaded = isLoaded(File file);
File file = new File("plugins/TheAPI/libraries/mariadb.jar");
if(!file.exists())
API.library.downloadFileFromUrl("https://github.com/TheDevTec/TheAPI/raw/master/mariadb.jar", file);
if(!API.library.isLoaded(file))
API.library.load(file);