Skip to content

Commit 9113768

Browse files
authored
add LXL
1 parent 8249d3d commit 9113768

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

source/LL-loader.py

+24-8
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,44 @@
55

66
pth=os.getcwd()
77

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? ')
1114

1215
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!')
1824

1925
print('Starting extract files')
2026
fantasy_zip = zipfile.ZipFile(pth + '\\bedrock_server.zip')
2127
fantasy_zip.extractall(pth)
2228
fantasy_zip = zipfile.ZipFile(pth + '\\LiteLoader.zip')
2329
fantasy_zip.extractall(pth)
30+
if (LXL == 'yes'):
31+
fantasy_zip = zipfile.ZipFile(pth + '\\LiteXLoader.zip')
32+
fantasy_zip.extractall(pth + '\\plugins')
2433
fantasy_zip.close()
2534

2635
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+
2742
os.system(pth + '\\SymDB2.exe')
2843

2944
for i in range( 0, 0 ):
3045
subprocess.call(('SymDB2.exe', str(i)))
3146

3247
os.system(pth + '\\bedrock_server.exe')
48+

0 commit comments

Comments
 (0)