Setup/Windows Script

Ultra Hardcore 1.8

HOME SETUP CMD & PERM CONFIG.YML GITHUB

Windows Users (Startup Script)

Here is one of my code for fully automatic system for you server.

 


  1. @echo off
  2. :start
  3.  
  4. set /a min 0
  5. set /a max 2000
  6. set /a r = %min% + %RANDOM% %% (%max% - %min% + 1)
  7. IF EXIST WorldSeed/%r% (XCOPY WorldSeed/%r% . /E /S /Y)
  8.  
  9. cls
  10.  
  11. java -Xmx2048M -jar your_bukkit_spigot_file.jar -o true
  12.  
  13. IF EXIST world (RD /s /q "world")
  14. IF EXIST world_nether (RD /s /q "world_nether")
  15. IF EXIST world_the_end (RD /s /q "world_the_end")
  16.  
  17. goto:start

 

Color Gray:

Turns the command-echoing feature off.

 

Color Magenta:

Line 2: Is where it start the loop.

Line 17: When the program hit that, it will go back to Line 2.

 

Color Orange: (optional)

When you want to use custom maps you add those lines.
You need to create a folder 'WorldSeed' on the server folder. (You can change it if you like, but remember to change it on Line 7 as well)
In that 'WorldSeed' folder you create a folder like this '0', '1', '2', etc... (As many you like (Line 5 is where the max is))

 

Example:
If you have 2 different custom maps, you set them up like this.

- WorldSeed
   - 0
      - world
      - world_nether
      - world_the_end
   - 1
      - world
      - world_nether
      - world_the_end

 

Color Green: (optional)

Clear the screen. (Terminal)

 

Color Blue:

Your Craftbukkit / Spigot server .jar file path.

 

Color Red:

Delete the world folder from the server if they exist.
(Only when the server is starting up)

 


PN7913.P6WP9M