Skip to content

Commit

Permalink
Update purpur build location
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Dec 6, 2021
1 parent 6d45720 commit 9999cbe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Expand Up @@ -381,6 +381,21 @@ public String getTemplate() {
return raw.getString("template");
}

/**
* Grabs the Template this Server was created from
*
* @param callback The Template
*/
public void getTemplate(Consumer<SubCreator.ServerTemplate> callback) {
Util.nullpo(callback);
String name = getTemplate();
if (name == null) {
callback.accept(null);
} else getHost(host -> {
callback.accept(host.getCreator().getTemplate(name));
});
}

/**
* Is this Server Available?
*
Expand Down
4 changes: 2 additions & 2 deletions SubServers.Creator/Purpur/build.sh
Expand Up @@ -29,7 +29,7 @@ if [[ -f "Purpur.jar" ]]; then
fi
mv Purpur.jar Purpur.old.jar.x
fi
__DL Purpur.jar "https://api.pl3x.net/v2/purpur/$version/latest/download"; __RETURN=$?
__DL Purpur.jar "https://api.purpurmc.org/v2/purpur/$version/latest/download"; __RETURN=$?
if [[ $__RETURN -eq 0 ]]; then
if [[ $(stat -c%s "Purpur.jar") -ge 1000000 ]]; then
echo Cleaning Up...
Expand All @@ -44,7 +44,7 @@ if [[ $__RETURN -eq 0 ]]; then
exit 4
fi
else
echo ERROR: Failed downloading Purpur. Is Pl3x.net down?
echo ERROR: Failed downloading Purpur. Is PurpurMC.org down?
__Restore
rm -Rf "$0"
exit 3
Expand Down

0 comments on commit 9999cbe

Please sign in to comment.