Updated updater to update

This commit is contained in:
Norbi Peti 2016-09-11 14:25:06 +02:00
parent 1e13da9e22
commit 01dd44fd72

View file

@ -33,7 +33,7 @@ public final class TBMCCoreAPI {
String ret = ""; String ret = "";
URL url; URL url;
try { try {
url = new URL("https://github.com/TBMCPlugins/" + name + "/raw/master/" + name + ".jar"); url = new URL("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);