-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStart.bat
49 lines (43 loc) · 1.35 KB
/
Start.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
title Savage Jacek Server Server
echo ===============================================================================
fc /b "config\eula.txt" eula.txt > nul
if errorlevel 1 (
goto error
) else (
echo You agreed to the EULA!
goto launch
)
:error
set Agree="n"
echo Do you agree to Minecraft's EULA. This can be found here https://account.mojang.com/documents/minecraft_eula
echo ===============================================================================
set /p Agree=Yes or No?
if /I "%Agree%"=="yes" goto agree
if /I "%Agree%"=="y" goto agree
if /I "%Agree%"=="no" goto kill
if /I "%Agree%"=="n" goto kill
:kill
echo ===============================================================================
echo You did not agree to the Minecraft EULA. This server will now stop
PAUSE
EXIT
:agree
copy /y "config\eula.txt" eula.txt
echo ===============================================================================
fc /b "config\eula.txt" eula.txt > nul
if not errorlevel 1 (
echo You now have agreed to the eula
goto launch
) else (
color 4Fs
echo Uh oh! There is an Error with this Batch File. Please report this issue to our discord.
pause
)
)
:launch
echo ===============================================================================
set /p R="RAM: "
echo Server Starting....
java -Xmx%R%G -Xms1G -jar forge-1.12.2-14.23.5.2810-universal.jar nogui
PAUSE