forked from Void-Skeleton/Carpet-Vastech-Addition
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmktest.cmd
More file actions
32 lines (32 loc) · 1.67 KB
/
Copy pathmktest.cmd
File metadata and controls
32 lines (32 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
echo Cleaning previous installations ...
rd /s /q build\tmp\fullRelease
mkdir build\tmp\fullRelease
echo Copying server ...
copy %userprofile%\.gradle\caches\minecraft\net\minecraft\minecraft_server\1.12.2\minecraft_server-1.12.2.jar build\tmp\fullRelease > nul
mkdir build\tmp\fullRelease\patches
echo Extracting WorldEdit ...
copy /Y worldedit-core-6.1.jar build\tmp\fullRelease\worldedit-core-6.1.jar > nul
copy /Y paranamer-2.6.jar build\tmp\fullRelease\paranamer-2.6.jar > nul
7z x build\tmp\fullRelease\paranamer-2.6.jar -bd -obuild\tmp\fullRelease\patches > nul
7z a build\tmp\fullRelease\worldedit-core-6.1.jar .\build\tmp\fullRelease\patches\* > nul
rd /s /q build\tmp\fullRelease\patches
mkdir build\tmp\fullRelease\patches
7z x build\tmp\fullRelease\minecraft_server-1.12.2.jar -bd -obuild\tmp\fullRelease\patches > nul
echo Applying WorldEdit ...
7z a build\tmp\fullRelease\worldedit-core-6.1.jar .\build\tmp\fullRelease\patches\* > nul
del build\tmp\fullRelease\minecraft_server-1.12.2.jar
rename build\tmp\fullRelease\worldedit-core-6.1.jar minecraft_server-1.12.2.jar
echo Extracting VasCM ...
rd /s /q build\tmp\fullRelease\patches
mkdir build\tmp\fullRelease\patches
7z x build\distributions\Carpetmod_dev.zip -bd -obuild\tmp\fullRelease\patches > nul
echo Applying VasCM ...
7z a build\tmp\fullRelease\minecraft_server-1.12.2.jar .\build\tmp\fullRelease\patches\* > nul
echo Cleanup ...
rd /s /q build\tmp\fullRelease\patches
move /y build\tmp\fullRelease\minecraft_server-1.12.2.jar %appdata%\.minecraft\saves\minecraft_server.1.12.2_carpet_test.jar > nul
pushd %appdata%\.minecraft\saves
echo Starting server ...
java -jar minecraft_server.1.12.2_carpet_test.jar --nogui
popd