Skip to content

Commit

Permalink
fix some
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingfengdev committed Jun 17, 2024
1 parent 4293ed7 commit 098b33f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion auto-optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def optimize_paper_global(paper):
paper["timings"]["enabled"] = False


@handler(r'config/paper-world-defaults.yml' if os.path.exists(r'config/paper-world-defaults.yml') else r'paper.yml')
@handler(r'config/paper-world-defaults.yml')
def optimize_paper_world(paper):
paper["chunks"]["delay-chunk-unloads-by"] = "10s"
paper["chunks"]["max-auto-save-chunks-per-tick"] = 8
Expand Down
9 changes: 6 additions & 3 deletions geyser-egg.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def setup_floodgate(floodgate, auto_install=False):
def install_extend(auto_install=False):
if auto_install or ask("安装GeyserOptionalPack(推荐)"):
download("https://download.geysermc.org/v2/projects/geyseroptionalpack/versions/latest/builds/latest"
"/downloads/geyseroptionalpack", "plugins/Geyser-Spigot/packs/geyseroptionalpack.mcpack")
"/downloads/geyseroptionalpack", "plugins/Geyser-Spigot/packs/GeyserOptionalPack.mcpack")
if auto_install or ask("安装Geyser行为修复(推荐)"):
download("https://github.com/GeyserMC/Hurricane/releases/download/2.0-SNAPSHOT-1/Hurricane.jar",
"plugins/Hurricane.jar")
Expand Down Expand Up @@ -77,6 +77,9 @@ def install_extend(auto_install=False):
if auto_install or ask("安装Geyser自动更新"):
download("https://ci.kejonamc.dev/job/GeyserUpdater/job/main/18/artifact/target/GeyserUpdater-1.6.4.jar",
"plugins/GeyserUpdater-1.6.4.jar")
if not auto_install and ask("安装Geyser扩展(1.20.6+)"):
download("https://github.com/GeyserExtras/GeyserExtras/releases/download/1.20.6-v1.1.1/GeyserExtras.jar",
"plugins/GeyserExtras.jar")


def setup_plugin(auto_install=False):
Expand All @@ -92,8 +95,8 @@ def setup_plugin(auto_install=False):
download("https://github.com/RenYuan-MC/QuickShopForm/releases/download/dev/QuickShopForm.jar",
"plugins/QuickShopForm.jar")
if auto_install or ask("安装Geyser扩展菜单(BedrockPlayerSupport)"):
download("https://github.com/DongShaoNB/BedrockPlayerSupport/releases/download/v1.8.3/BedrockPlayerSupport-1"
".8.3.jar", "plugins/BedrockPlayerSupport-1.8.3.jar")
download("https://github.com/DongShaoNB/BedrockPlayerSupport/releases/download/v2.0.0/BedrockPlayerSupport-2"
".0.0-all.jar", "plugins/BedrockPlayerSupport.jar")
if os.path.exists("plugins/Skript") and (auto_install or ask("安装Skript基岩版兼容")):
download("https://github.com/kejonaMC/floodgate-skript/releases/download/v2.1/floodgate-skript-2.1.jar",
"plugins/floodgate-skript-2.1.jar")
Expand Down
8 changes: 4 additions & 4 deletions via-setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ def install_via():
if j8:
path = get_path("ViaVersion-Java8")
else:
path = get_path("ViaVersion")
path = get_path("ViaVersion-DEV")
download(path, "plugins/ViaVersion.jar")
if ask("安装ViaBackward(Via向下兼容)(推荐)"):
if j8:
path = get_path("ViaBackwards-Java8")
else:
path = get_path("ViaBackwards")
path = get_path("ViaBackwards-DEV")
download(path, "plugins/ViaBackwards.jar")
if ask("安装ViaRewind(Via1.7-1.8兼容)"):
if j8:
path = get_path("ViaRewind-Java8")
else:
path = get_path("ViaRewind")
path = get_path("ViaRewind-DEV")
download(path, "plugins/ViaRewind.jar")
path = get_path("ViaRewind%20Legacy%20Support")
path = get_path("ViaRewind Legacy Support DEV")
download(path, "plugins/ViaRewind-Legacy-Support.jar")


Expand Down

0 comments on commit 098b33f

Please sign in to comment.