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"?>
|
||||
<projectDescription>
|
||||
<name>ButtonPluginBucket</name>
|
||||
<name>ButtonCore</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
|
|
@ -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/"
|
||||
|
|
Loading…
Reference in a new issue