Skip to content

Commit 6daddf9

Browse files
author
neursh
committed
idk
1 parent 5967123 commit 6daddf9

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
/server/*
1+
server
22
/__pycache__/*
33
config.json
44
output/*
55
/core/__pycache__/*
66
/.vscode/*
77
/dist/*
88
/build/*
9-
/mccl_client.spec
9+
/mccl_client.spec
10+
mccl_client.exe
11+
_internal

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ For example `config.json`:
4444
"service": "https://...workers.dev",
4545
"discordWebhook": "https://discord.com/api/webhooks/...",
4646
"localLastRun": 0,
47-
"executable": "paper-1.20.4-464.jar",
4847
"cmd": ["java", "-jar", "paper-1.20.4-464.jar", "-nogui"],
4948
"excludeLockStructure": ["cache", "libraries", "versions", "logs", "crash-report"]
5049
}

config.template.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"service": "https://...workers.dev",
55
"discordWebhook": "https://discord.com/api/webhooks/...",
66
"localLastRun": 0,
7-
"executable": "paper-1.20.4-464.jar",
87
"cmd": ["java", "-jar", "paper-1.20.4-464.jar", "-nogui"],
9-
"excludeLockStructure": ["cache", "libraries", "versions", "logs", "crash-report"]
8+
"excludeLockStructure": ["cache", "libraries", "versions", "logs", "crash-report", "paper-1.20.4-464.jar"]
109
}

core/content_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def downloadServer(self, endRange: int | None = None):
2323
total = int(resp.headers.get("content-length", 0))
2424

2525
bar = tqdm(
26-
desc=f"Server build",
26+
desc="Server build",
2727
total=total,
2828
unit="iB",
2929
unit_scale=True,

core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def scanServerFolder(cls, config: dict, path: str, withRelativeBytesOffset: bool
99
for root, _, files in os.walk(path):
1010
for file in files:
1111
cPath: str = os.path.join(root, file)
12-
if any([cPath.startswith(f"{path}{excluded}") for excluded in config["excludeLockStructure"] + [config["executable"]]]):
12+
if any([cPath.startswith(f"{path}{excluded}") for excluded in config["excludeLockStructure"]]):
1313
continue
1414

1515
modifiedDate = os.path.getmtime(cPath)

mccl_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ def main(session: requests.Session):
3030
print("[MCCL] Unauthorized, press Enter to exit...")
3131
return
3232

33-
if setupCheck != True:
33+
if setupCheck is not True:
3434
input(f"[MCCL] {setupCheck} is running the session!\n\nPress Enter to close...")
3535
return
3636

3737
print(f"[MCCL] Starting a session on behalf of {loader.config["name"]}...")
3838

3939
setupStart = setup.start()
4040

41-
if setupStart != True:
41+
if setupStart is not True:
4242
print(f"[MCCL] {setupStart} is running the session!\n\nPress Enter to close...")
4343
return
4444

0 commit comments

Comments
 (0)