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"?>
<projectDescription>
<name>ButtonPluginBucket</name>
<name>ButtonCore</name>
<comment></comment>
<projects>
</projects>

View file

@ -34,8 +34,9 @@ public final class TBMCCoreAPI {
String ret = "";
URL url;
try {
url = new URL("https://jitpack.io/com/github/TBMCPlugins/" + name + "/master-SNAPSHOT/" + name
+ "-master-SNAPSHOT.jar");
url = new URL("https://jitpack.io/com/github/TBMCPlugins/"
+ (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"));
} catch (FileNotFoundException e) {
ret = "Can't find JAR, the build probably failed. Build log (scroll to bottom):\nhttps://jitpack.io/com/github/TBMCPlugins/"