Skip to content

Commit d19486d

Browse files
authored
add pufferfish support
pufferfish
2 parents 0fb83a5 + 3a5f75a commit d19486d

File tree

1 file changed

+61
-19
lines changed

1 file changed

+61
-19
lines changed

Minecraft-server-auto-setup.bat

Lines changed: 61 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -82,35 +82,37 @@ echo:
8282
echo 請先選擇一個核心
8383
echo:
8484
echo 插件伺服器核心
85-
echo 1.Paper (建議)
86-
echo 2.Purpur
85+
echo 1. Paper (建議)
86+
echo 2. Purpur
87+
echo 3. Pufferfish
8788
echo:
8889
echo 分流伺服器核心
89-
echo 3.BungeeCord
90-
echo 4.Waterfall
91-
echo 5.Velocity
90+
echo 4. BungeeCord
91+
echo 5. Waterfall
92+
echo 6. Velocity
9293
echo:
9394
echo 模組伺服器核心
94-
echo 6.Fabric
95-
echo 7.Forge
95+
echo 7. Fabric
96+
echo 8. Forge
9697
echo:
9798
echo 其他類型核心
98-
echo 8.Folia
99-
echo 9.Vanilla(原版服)
99+
echo 9. Folia
100+
echo 10. Vanilla(原版服)
100101
echo:
101-
echo 10.使用自訂核心
102+
echo 11.使用自訂核心
102103
set choice=
103-
set /p choice= 請選擇一個(1~12):
104+
set /p choice= 請選擇一個(1~11):
104105
if '%choice%'=='1' goto dpaper
105106
if '%choice%'=='2' goto dpurpur
106-
if '%choice%'=='3' goto dbungeecord
107-
if '%choice%'=='4' goto dwaterfall
108-
if '%choice%'=='5' goto dvelocity
109-
if '%choice%'=='6' goto dfabric
110-
if '%choice%'=='7' goto dforge
111-
if '%choice%'=='8' goto dfolia
112-
if '%choice%'=='9' goto dvanilla
113-
if '%choice%'=='10' goto customcore
107+
if '%choice%'=='3' goto dpuffer
108+
if '%choice%'=='4' goto dbungeecord
109+
if '%choice%'=='5' goto dwaterfall
110+
if '%choice%'=='6' goto dvelocity
111+
if '%choice%'=='7' goto dfabric
112+
if '%choice%'=='8' goto dforge
113+
if '%choice%'=='9' goto dfolia
114+
if '%choice%'=='10' goto dvanilla
115+
if '%choice%'=='11' goto customcore
114116
echo 輸入錯誤,請再試一次
115117
PAUSE
116118
cls
@@ -203,6 +205,46 @@ goto ngrok
203205
echo java -Xmx4096M -Xms1024M -jar server.jar nogui> StartServer.bat
204206
goto ngrok
205207

208+
:dpurpur
209+
cls
210+
setlocal
211+
echo:
212+
echo 正在讀取最新版本資訊....
213+
curl -O https://raw.githubusercontent.com/MagicTeaMC/Minecraft-server-auto-setup/version/minecraft.txt >NUL 2>NUL
214+
set "file=./minecraft.txt"
215+
set /p "content="<"%file%"
216+
217+
del minecraft.txt
218+
219+
cls
220+
echo:
221+
echo 開始下載 Pufferfish (MC version %content%)
222+
curl -O https://ci.pufferfish.host/job/Pufferfish-1.20/lastSuccessfulBuild/artifact/build/libs/pufferfish-paperclip-%content%-R0.1-SNAPSHOT-reobf.jar >NUL 2>NUL
223+
ren download server.jar
224+
cls
225+
echo:
226+
echo:
227+
echo:
228+
echo Pufferfish (MC version %content%) 下載完成
229+
endlocal
230+
:dpurpured
231+
echo:
232+
echo 要使用 Aikar Flags 嗎?
233+
echo 這是一個在某些情況下可以讓伺服器效能提升的啟動參數
234+
echo 輸入1即使用,輸入2即使用預設啟動參數
235+
set puachoice=
236+
set /p puachoice= 請輸入您的選擇:
237+
if '%puachoice%'=='1' goto pufferuseaikarflag
238+
if '%puachoice%'=='2' goto pufferdontuseaikarflag
239+
echo 輸入錯誤,請再試一次
240+
goto dpapered
241+
:pufferuseaikarflag
242+
echo java -Xms4096M -Xmx4096M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar --nogui> StartServer.bat
243+
goto ngrok
244+
:pufferdontuseaikarflag
245+
echo java -Xmx4096M -Xms1024M -jar server.jar nogui> StartServer.bat
246+
goto ngrok
247+
206248
:dfabric
207249
cls
208250
setlocal

0 commit comments

Comments
 (0)