Changed output when checking and removed debug output

Changes:
-removed update available columm and integrated it with colors of the plugin name
- removed leftover debug output
This commit is contained in:
Neocky
2021-06-20 13:54:15 +02:00
parent a4b1b7acf9
commit 1e7b30a1be
2 changed files with 15 additions and 11 deletions

View File

@@ -142,7 +142,6 @@ def paperCheckForUpdate(installedServerjarFullName):
if not paperVersionBehind:
print(oColors.brightRed + f"ERR: An error was encountered while detecting how many versions behind you are. "
f"Will display as 'N/A'." + oColors.standardWhite)
print(paperVersionBehind)
paperVersionBehind = "N/A" # Sets paperVersionBehind to N/A while still letting the versionBehind check return
# False for error-handing reasons.
@@ -195,7 +194,6 @@ def papermc_downloader(paperBuild='latest', installedServerjarName=None, mcVersi
downloadPath = createTempPluginFolder()
url = f"https://papermc.io/api/v2/projects/paper/versions/{mcVersion}/builds/{paperBuild}/downloads/{downloadFileName}"
print(url)
remotefile = urllib.request.urlopen(url)
filesize = remotefile.info()['Content-Length']
print(f"Getting Paper {paperBuild} for {mcVersion}")