Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO off
- color A
- TITLE Minecraft StartupScript by Mattie!
- :start
- CLS
- ECHO Hello Users, this is Minecraft Startupscript by Mattie
- ECHO.
- ECHO Please choose the option you want to run!
- ECHO 1: Start the minecraft server (1024MB ram)
- ECHO 2: Start the minecraft server (customize ram)
- ECHO 3: make backup
- ECHO 4: run updatrrrrrr
- ECHO 5: generate Google-maps map
- ECHO 6: QUIT
- ECHO.
- ECHO.
- set /p keuze=Enter a number:[1,2,3,4,5,6]:
- if %keuze%==1 goto startMC
- if %keuze%==2 goto startMCRAM
- if %keuze%==3 goto backup
- if %keuze%==4 goto updater
- if %keuze%==5 goto generateMAP
- if %keuze%==6 exit
- :startMC
- ECHO.
- ECHO starting Minecraft.....
- ECHO To quit do ctrl+c and select 'Y' to quit or 'N' to return to the menu!
- ECHO.
- PAUSE
- java -Xmx1024M -Xms1024M -jar Minecraft_Mod.jar nogui
- goto start
- :startMCRAM
- ECHO.
- ECHO starting Minecraft.....
- ECHO To quit do ctrl+c and select 'Y' to quit or 'N' to return to the menu!
- ECHO.
- PAUSE
- ECHO.
- ECHO Please enter the amount of RAM you want to use
- set /p ram=Enter the amount of MB:
- java -Xmx%ram%M -Xms%ram%M -jar Minecraft_Mod.jar nogui
- goto start
- :backup
- ECHO starting backup
- ECHO.
- for /f "tokens=1,2,3,4 delims=/ " %%a in ("%date%") do set wday=%%a&set month=%%b&set day=%%c&set year=%%d
- set tijd=%time:~0,-3%
- set tijd=%tijd::=-%
- 7za a -tzip ../backups/backup%day%-%month%-%year%%tijd%.zip *
- PAUSE
- goto start
- :updater
- ECHO starting updatr
- ECHO.
- ECHO NOT IMPLEMENTED YET!
- PAUSE
- goto start
- :generateMAP
- ECHO Running the map-generator script
- generateMCGoogleMapMap.bat
- pause
- goto start
- :endscript
- ECHO Press any key to return to the menu
- PAUSE
- goto start
Advertisement
Add Comment
Please, Sign In to add comment