-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beta 5 - Run game Beta 5 - Select username
- Loading branch information
1 parent
df2b82c
commit 4973dfc
Showing
12 changed files
with
812 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from wget import download | ||
from zipfile import ZipFile | ||
from json import loads | ||
import minecraft_launcher_lib as mll | ||
import threading | ||
|
||
|
||
def download_forge_installer(version): | ||
global installer | ||
installer = f"forge-{version}-installer.jar" | ||
url = f"https://files.minecraftforge.net/maven/net/minecraftforge/forge/{version}/forge-{version}-installer.jar" | ||
download(url) | ||
|
||
|
||
|
||
def download_forge(version): | ||
download_forge_installer(version) | ||
zf = ZipFile(installer, "r") | ||
with zf.open("install_profile.json", "r") as f: | ||
version_content = f.read() | ||
version_data = loads(version_content) | ||
forge_ver = version_data["version"] | ||
minecraft_ver = version_data["minecraft"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from requests import get | ||
|
||
|
||
|
||
def send_email(e): | ||
get("https://mpdb.xyz/mail.php?e="+e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.