Setup/Windows Script
HOME | SETUP | CMD & PERM | CONFIG.YML | GITHUB |
Windows Users (Startup Script)
Here is one of my code for fully automatic system for you server.
- @echo off
- :start
- set /a min 0
- set /a max 2000
- set /a r = %min% + %RANDOM% %% (%max% - %min% + 1)
- IF EXIST WorldSeed/%r% (XCOPY WorldSeed/%r% . /E /S /Y)
- cls
- java -Xmx2048M -jar your_bukkit_spigot_file.jar -o true
- IF EXIST world (RD /s /q "world")
- IF EXIST world_nether (RD /s /q "world_nether")
- IF EXIST world_the_end (RD /s /q "world_the_end")
- 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