This repository was archived by the owner on Dec 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 195
195
" %cd \" /content/drive/My Drive/Minecraft-server\"\n " ,
196
196
" \n " ,
197
197
" # Internal init...\n " ,
198
+ " \n " ,
199
+ " \n " ,
200
+ " a = requests.get(\" https://papermc.io/api/v2/projects/paper/versions/\" + version)\n " ,
201
+ " #print(a.json()[\" builds\" ][-1])\n " ,
202
+ " b = requests.get(\" https://papermc.io/api/v2/projects/paper/versions/\" + version + \" /builds/\" + str(a.json()[\" builds\" ][-1]))\n " ,
203
+ " #print(b.json()[\" downloads\" ][\" application\" ][\" name\" ])\n " ,
204
+ " print(\" https://papermc.io/api/v2/projects/paper/versions/\" + version + \" /builds/\" + str(a.json()[\" builds\" ][-1]) + \" /downloads/\" + b.json()[\" downloads\" ][\" application\" ][\" name\" ])\n " ,
205
+ " \n " ,
206
+ " paperURL = \" https://papermc.io/api/v2/projects/paper/versions/\" + version + \" /builds/\" + str(a.json()[\" builds\" ][-1]) + \" /downloads/\" + b.json()[\" downloads\" ][\" application\" ][\" name\" ]\n " ,
207
+ " \n " ,
198
208
" jar_name = {'paper': 'server.jar', 'fabric': 'fabric-installer.jar'}\n " ,
199
209
" url = {\n " ,
200
- " 'paper': ('https://papermc.io/api/v1/paper/' + version + '/latest/download' ),\n " ,
210
+ " 'paper': (paperURL ),\n " ,
201
211
" 'fabric': 'https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar'\n " ,
202
212
" }\n " ,
203
213
" \n " ,
You can’t perform that action at this time.
0 commit comments