Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. @echo off
  2. Title Xenon-Faction Level Saver
  3. :lookfor
  4. If exist %Worldsave.xef goto exist
  5. echo.
  6. echo ---
  7. echo Instructions
  8. echo Just fill out the setup fields to create a .xef data
  9. echo and create a Worldbackup dir in your "bin" folder (on the server)
  10. pause
  11.  
  12. :listen
  13. cls
  14. echo.
  15. echo.
  16. echo.
  17. echo Enter FTP-Server-Adress
  18. set /p ip=
  19. cls
  20. echo.
  21. echo.
  22. echo.
  23. echo Enter Username
  24. set /p user=
  25. cls
  26. echo.
  27. echo.
  28. echo.
  29. echo Enter Password
  30. set /p pass=
  31. cls
  32. echo.
  33. echo.
  34. echo.
  35. echo Enter Path of your Minecraft "bin" folder (the one on the server)
  36. set /p dir=
  37. cls
  38. echo.
  39. echo.
  40. echo.
  41. echo Enter Name of your world-folder (default world)
  42. set /p earth=
  43.  
  44. cls
  45. echo Entered FTP-Adress:
  46. echo %ip%
  47. echo.
  48. echo Entered Username:
  49. echo %user%
  50. echo.
  51. echo Entered Password:
  52. echo %pass%
  53. echo.
  54. echo Entered Path:
  55. echo %dir%
  56. echo.
  57. echo Entered World:
  58. echo %earth%
  59. echo ------------------------------------------
  60. echo.
  61. echo Ready to Continue? (Y/N)
  62. set /p rdy=
  63. if /i %rdy%==y goto fwd
  64. if /i %rdy%==n goto listen
  65.  
  66. :fwd
  67. echo OPEN %ip%>> Worldsave.xef
  68. echo %user%>> Worldsave.xef
  69. echo %pass%>> Worldsave.xef
  70. echo CD %dir%>> Worldsave.xef
  71. echo CD %earth%>> Worldsave.xef
  72. echo ASCII>> Worldsave.xef
  73. echo GET "level.dat">> Worldsave.xef
  74. echo CD ..>> Worldsave.xef
  75. echo CD Worldbackup>> Worldsave.xef
  76. echo PUT "level.dat">> Worldsave.xef
  77. echo BYE>> Worldsave.xef
  78. goto lookfor
  79.  
  80.  
  81. :exist
  82. ftp -s:Worldsave.xef
  83. rem cls
  84. del level.dat
  85. rem cls
  86. ver
  87. echo.
  88. echo Transferred %dir%\%earth%\level.dat to %dir%\Worldbackup\
  89. echo Press any key to exit..
  90. pause>nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement