Fixed ButtonCore update location

And renamed project
This commit is contained in:
Norbi Peti 2016-10-14 15:18:18 +02:00
parent 7dc531aebb
commit a1020fbad1
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<projectDescription> <projectDescription>
<name>ButtonPluginBucket</name> <name>ButtonCore</name>
<comment></comment> <comment></comment>
<projects> <projects>
</projects> </projects>

View file

@ -34,8 +34,9 @@ public final class TBMCCoreAPI {
String ret = ""; String ret = "";
URL url; URL url;
try { try {
url = new URL("https://jitpack.io/com/github/TBMCPlugins/" + name + "/master-SNAPSHOT/" + name url = new URL("https://jitpack.io/com/github/TBMCPlugins/"
+ "-master-SNAPSHOT.jar"); + (name.equalsIgnoreCase("ButtonCore") ? "ButtonCore/ButtonCore" : name) + "/master-SNAPSHOT/"
+ name + "-master-SNAPSHOT.jar"); // ButtonCore exception required since it hosts Towny as well
FileUtils.copyURLToFile(url, new File("plugins/" + name + ".jar")); FileUtils.copyURLToFile(url, new File("plugins/" + name + ".jar"));
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
ret = "Can't find JAR, the build probably failed. Build log (scroll to bottom):\nhttps://jitpack.io/com/github/TBMCPlugins/" ret = "Can't find JAR, the build probably failed. Build log (scroll to bottom):\nhttps://jitpack.io/com/github/TBMCPlugins/"