Mattie

Untitled

Jan 16th, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. @ECHO off
  2. color A
  3. TITLE Minecraft StartupScript by Mattie!
  4. :start
  5. CLS
  6. ECHO Hello Users, this is Minecraft Startupscript by Mattie
  7. ECHO.
  8. ECHO Please choose the option you want to run!
  9. ECHO 1: Start the minecraft server (1024MB ram)
  10. ECHO 2: Start the minecraft server (customize ram)
  11. ECHO 3: make backup
  12. ECHO 4: run updatrrrrrr
  13. ECHO 5: generate Google-maps map
  14. ECHO 6: QUIT
  15. ECHO.
  16. ECHO.
  17. set /p keuze=Enter a number:[1,2,3,4,5,6]:
  18. if %keuze%==1 goto startMC
  19. if %keuze%==2 goto startMCRAM
  20. if %keuze%==3 goto backup
  21. if %keuze%==4 goto updater
  22. if %keuze%==5 goto generateMAP
  23. if %keuze%==6 exit
  24. :startMC
  25. ECHO.
  26. ECHO starting Minecraft.....
  27. ECHO To quit do ctrl+c and select 'Y' to quit or 'N' to return to the menu!
  28. ECHO.
  29. PAUSE
  30. java -Xmx1024M -Xms1024M -jar Minecraft_Mod.jar nogui
  31. goto start
  32. :startMCRAM
  33. ECHO.
  34. ECHO starting Minecraft.....
  35. ECHO To quit do ctrl+c and select 'Y' to quit or 'N' to return to the menu!
  36. ECHO.
  37. PAUSE
  38. ECHO.
  39. ECHO Please enter the amount of RAM you want to use
  40. set /p ram=Enter the amount of MB:
  41. java -Xmx%ram%M -Xms%ram%M -jar Minecraft_Mod.jar nogui
  42. goto start
  43. :backup
  44. ECHO starting backup
  45. ECHO.
  46. for /f "tokens=1,2,3,4 delims=/ " %%a in ("%date%") do set wday=%%a&set month=%%b&set day=%%c&set year=%%d
  47. set tijd=%time:~0,-3%
  48. set tijd=%tijd::=-%
  49. 7za a -tzip ../backups/backup%day%-%month%-%year%%tijd%.zip *
  50. PAUSE
  51. goto start
  52. :updater
  53. ECHO starting updatr
  54. ECHO.
  55. ECHO NOT IMPLEMENTED YET!
  56. PAUSE
  57. goto start
  58. :generateMAP
  59. ECHO Running the map-generator script
  60. generateMCGoogleMapMap.bat
  61. pause
  62. goto start
  63. :endscript
  64. ECHO Press any key to return to the menu
  65. PAUSE
  66. goto start
Advertisement
Add Comment
Please, Sign In to add comment