You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 27, 2024. It is now read-only.
This if statement is from the Make-a-Server section of the notebook
It looks like there's a typo just before the first elif
The previous line's print() isn't tabbed, which ends the if statement, and gets confused with the elif after
if server_type == "paper":
a = requests.get("https://papermc.io/api/v2/projects/paper/versions/" + version)
b = requests.get("https://papermc.io/api/v2/projects/paper/versions/" + version + "/builds/" + str(a.json()["builds"][-1]))
print("https://papermc.io/api/v2/projects/paper/versions/" + version + "/builds/" + str(a.json()["builds"][-1]) + "/downloads/" + b.json()["downloads"]["application"]["name"])
url = "https://papermc.io/api/v2/projects/paper/versions/" + version + "/builds/" + str(a.json()["builds"][-1]) + "/downloads/" + b.json()["downloads"]["application"]["name"]
jar_name = "server.jar"
print('Downloading to Google Drive...')
elif server_type == "fabric":
url = "https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar"
jar_name = "fabric-installer.jar"
elif server_type == "forge":
url = f"https://maven.minecraftforge.net/net/minecraftforge/forge/{version}-{forge_version}/forge-{version}-{forge_version}-installer.jar"
jar_name = "server.jar"
TLDR: print('Downloading to Google Drive...') needs to be tabbed
This if statement is from the Make-a-Server section of the notebook
It looks like there's a typo just before the first elif
The previous line's print() isn't tabbed, which ends the if statement, and gets confused with the elif after
TLDR:
print('Downloading to Google Drive...')needs to be tabbed