@echo off
set JAVA=java
set JAR=spigot.jar
set RAM=2500M
set FLAGS=-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Daikars.new.flags=true -Dusing.aikars.flags=https://mcflags.emc.gs
cls
echo son surumleri https://papermc.io/downloads adresinden indirebilirsiniz.
echo eger sunucunuz 3gb'dan buyuk ise bu dosyayi duzenleyip, Ram miktarini duzenleyiniz.
echo
echo sunucunuzu guvenli hale getirmek icin baslangic portunu 25565 den farkli bir porta alin veya whitelist kullanin.
echo aksi takdirde siz yokken baskalari girerek, sunucunuzdaki haritayi silebilir..
echo
echo 5 saniye icinde basliyor.
title batihost 1.20.4 3gb vanilla server paketi. (3GB)
timeout 1 > null
FOR /F %%I IN ('curl https://batihost.com/server-dosyalari/update') DO SET "update=%%I"
echo update var = %update%
if %update% == evet (
echo güncelleme var.
son sürüme güncelleniyor.
curl -o spigot.jar https://batihost.com/server-dosyalari/spigot.jar
)
if NOT EXIST "C:\Program Files\Java\jdk-17.0.1\bin\java.exe" (
call :MsgBox "Makinenizde JAVA Bulunamadi, Kurulumu Onaylayin? Sonrasinda tekrar calistirin." "VBOkOnly+vbExclamation" "Java Kurulmasi gerekiyor?"
jdk-ONCE-BUNU-KURUN.msi
REM pause & exit /b
)
"C:\Program Files\Java\jdk-17.0.1\bin\java.exe" -Xmx%RAM% -Xms%RAM% %FLAGS% -jar %JAR% --nogui -o false
echo ---------------------------------------------
echo sunucunuz calismadi veya durdurunuz, entere basin.
pause > null
pause & exit /b
:MsgBox prompt type title
setlocal enableextensions
set "tempFile=%temp%\%~nx0.%random%%random%%random%vbs.tmp"
>"%tempFile%" echo(WScript.Quit msgBox("%~1",%~2,"%~3") & cscript //nologo //e:vbscript "%tempFile%"
set "exitCode=%errorlevel%" & del "%tempFile%" >nul 2>nul
endlocal & exit /b %exitCode%