|
5 | 5 |
|
6 | 6 | pth=os.getcwd() |
7 | 7 |
|
8 | | -print("write down which versions you want to use(use full name of version, example 1.2.4 and 1.17.34.02)") |
9 | | -LL = input("what version of LL u need? ") |
10 | | -BDS = input("what version of BDS u need? ") |
| 8 | +print('write down which versions you want to use(use full name of version, example 1.2.4 and 1.17.34.02)') |
| 9 | +LL = input('what version of LL you need? ') |
| 10 | +BDS = input('what version of BDS you need? ') |
| 11 | +LXL = input('do you need install LXL? (yes/no) ') |
| 12 | +if (LXL == 'yes'): |
| 13 | + LXL_ver = input('what version of LXL you need? ') |
11 | 14 |
|
12 | 15 | print('Beginning downloading files...') |
13 | | -zip = 'https://minecraft.azureedge.net/bin-win/bedrock-server-'+ BDS +'.zip' |
14 | | -zip1 = 'https://github.com/LiteLDev/LiteLoaderBDS/releases/download/'+ LL +'/LiteLoader.zip' |
15 | | -urllib.request.urlretrieve(zip, 'bedrock_server.zip') |
16 | | -urllib.request.urlretrieve(zip1, 'LiteLoader.zip') |
17 | | -print("Success!") |
| 16 | +bds = 'https://minecraft.azureedge.net/bin-win/bedrock-server-'+ BDS +'.zip' |
| 17 | +ll = 'https://github.com/LiteLDev/LiteLoaderBDS/releases/download/'+ LL +'/LiteLoader.zip' |
| 18 | +if (LXL == 'yes'): |
| 19 | + lxl = 'https://github.com/LiteLDev/LiteXLoader/releases/download/v'+ LXL_ver + '/LiteXLoader.zip' |
| 20 | + urllib.request.urlretrieve(lxl, 'LiteXLoader.zip') |
| 21 | +urllib.request.urlretrieve(bds, 'bedrock_server.zip') |
| 22 | +urllib.request.urlretrieve(ll, 'LiteLoader.zip') |
| 23 | +print('Success!') |
18 | 24 |
|
19 | 25 | print('Starting extract files') |
20 | 26 | fantasy_zip = zipfile.ZipFile(pth + '\\bedrock_server.zip') |
21 | 27 | fantasy_zip.extractall(pth) |
22 | 28 | fantasy_zip = zipfile.ZipFile(pth + '\\LiteLoader.zip') |
23 | 29 | fantasy_zip.extractall(pth) |
| 30 | +if (LXL == 'yes'): |
| 31 | + fantasy_zip = zipfile.ZipFile(pth + '\\LiteXLoader.zip') |
| 32 | + fantasy_zip.extractall(pth + '\\plugins') |
24 | 33 | fantasy_zip.close() |
25 | 34 |
|
26 | 35 | print('All file extracted! Starting generate server') |
| 36 | + |
| 37 | +os.remove(pth + '\\LiteLoader.zip') |
| 38 | +os.remove(pth + '\\bedrock_server.zip') |
| 39 | +if (LXL == 'yes'): |
| 40 | + os.remove(pth + '\\LiteXLoader.zip') |
| 41 | + |
27 | 42 | os.system(pth + '\\SymDB2.exe') |
28 | 43 |
|
29 | 44 | for i in range( 0, 0 ): |
30 | 45 | subprocess.call(('SymDB2.exe', str(i))) |
31 | 46 |
|
32 | 47 | os.system(pth + '\\bedrock_server.exe') |
| 48 | + |
0 commit comments