Fixed ButtonCore update location
And renamed project
This commit is contained in:
parent
7dc531aebb
commit
a1020fbad1
2 changed files with 4 additions and 3 deletions
2
.project
2
.project
|
@ -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>
|
||||||
|
|
|
@ -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/"
|
||||||
|
|
Loading…
Reference in a new issue