Fixed update URL

This commit is contained in:
Norbi Peti 2016-09-11 15:21:33 +02:00
parent 12fe150596
commit b3f960ad7a

View file

@ -33,7 +33,7 @@ public final class TBMCCoreAPI {
String ret = ""; String ret = "";
URL url; URL url;
try { try {
url = new URL("com/github/TBMCPlugins/" + name + "/master-SNAPSHOT/" + name + "-master-SNAPSHOT.jar"); url = new URL("https://jitpack.io/com/github/TBMCPlugins/" + name + "/master-SNAPSHOT/" + name + "-master-SNAPSHOT.jar");
FileUtils.copyURLToFile(url, new File("plugins/" + name + ".jar")); FileUtils.copyURLToFile(url, new File("plugins/" + name + ".jar"));
} catch (Exception e) { } catch (Exception e) {
MainPlugin.Instance.getLogger().warning("Error!\n" + e); MainPlugin.Instance.getLogger().warning("Error!\n" + e);