|
2 | 2 | #type: ignore |
3 | 3 | #Early load variables |
4 | 4 | APP_VERSION = 1#The API Version. |
5 | | -APP_UF_VERSION = "1.54.5" |
| 5 | +APP_UF_VERSION = "1.54.6" |
6 | 6 | #The semver version |
7 | | -print(f"CraftServerSetup by Enderbyte Programs v{APP_UF_VERSION} (c) 2023-2025, some rights reserved") |
| 7 | +print(f"CraftServerSetup by Enderbyte Programs v{APP_UF_VERSION} (c) 2023-2026, some rights reserved") |
8 | 8 |
|
9 | 9 | ### Standard Library Imports ### |
10 | 10 |
|
@@ -255,17 +255,7 @@ def safe_exit(code): |
255 | 255 | sys.exit(code) |
256 | 256 |
|
257 | 257 | def send_telemetry(): |
258 | | - rdx = { |
259 | | - "OperatingSystem" : platform.platform(), |
260 | | - "ServerCount" : len(appdata.APPDATA["servers"]), |
261 | | - "IsActivated" : False,#This system has got to go... Some day... |
262 | | - "ApplicationVersion" : APP_UF_VERSION |
263 | | - } |
264 | | - #cursesplus.textview(_SCREEN,text=str(rdx)) |
265 | | - try: |
266 | | - r = requests.post("http://enderbyteprograms.net:11111/craftserversetup/call",data=str(json.dumps(rdx)),headers={"Content-Type":"application/json"}) |
267 | | - except: |
268 | | - pass |
| 258 | + pass#This feature has been disabled |
269 | 259 |
|
270 | 260 | def parse_size(data: int) -> str: |
271 | 261 | result:str = "" |
@@ -1461,7 +1451,7 @@ def modrinth_api_seach_and_download(stdscr,modfolder,serverversion,searchq,limit |
1461 | 1451 | if serverversion in item["game_versions"] or not lenset["enforce-version"]: |
1462 | 1452 | finald.append(item) |
1463 | 1453 | final.append(f"{item['name']} ({item['version_type']})") |
1464 | | - filed = cursesplus.coloured_option_menu(stdscr,["Cancel"]+final,"Please choose a version to download") |
| 1454 | + filed = uicomponents.menu(stdscr,["Cancel"]+final,"Please choose a version to download") |
1465 | 1455 | if filed == 0: |
1466 | 1456 | continue |
1467 | 1457 | primad = [d for d in finald[filed-1]["files"] if d["primary"]][0] |
@@ -1597,7 +1587,7 @@ def svr_mod_mgr(stdscr,SERVERDIRECTORY: str,serverversion,servertype): |
1597 | 1587 | return |
1598 | 1588 | elif spldi == 1: |
1599 | 1589 | #add mod |
1600 | | - minstype = cursesplus.coloured_option_menu(stdscr,["Back","Install from file on this computer","Download from Modrinth","Download from Spigot"]) |
| 1590 | + minstype = uicomponents.menu(stdscr,["Back","Install from file on this computer","Download from Modrinth","Download from Spigot"]) |
1601 | 1591 | if minstype == 1: |
1602 | 1592 | modfiles = cursesplus.filedialog.openfilesdialog(stdscr,"Please choose the plugins you would like to add",[["*.jar","JAR Executables"],["*","All files"]]) |
1603 | 1593 | for modfile in modfiles: |
@@ -4272,7 +4262,7 @@ def import_amc_server(stdscr,chlx): |
4272 | 4262 | cursesplus.messagebox.showerror(stdscr,["An error occured importing your server.",str(e)]) |
4273 | 4263 |
|
4274 | 4264 | def choose_server_memory_amount(stdscr) -> str: |
4275 | | - chop = cursesplus.coloured_option_menu( |
| 4265 | + chop = uicomponents.menu( |
4276 | 4266 | stdscr, |
4277 | 4267 | [ |
4278 | 4268 | "1024 Megabytes (1 GB) - This is minimum for vanilla servers only", |
|
0 commit comments