Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 725 Bytes
@echo off
pushd %~dp0
if exist "server\world\region" cd "server\world\region"
:: Backup spawn region
if not exist "r.0.0.mca.bak" if exist "r.0.0.mca" copy "r.0.0.mca" "r.0.0.mca.bak"
if not exist "r.0.-1.mca.bak" if exist "r.0.-1.mca" copy "r.0.-1.mca" "r.0.-1.mca.bak"
if not exist "r.-1.0.mca.bak" if exist "r.-1.0.mca" copy "r.-1.0.mca" "r.-1.0.mca.bak"
if not exist "r.-1.-1.mca.bak" if exist "r.-1.-1.mca" copy "r.-1.-1.mca" "r.-1.-1.mca.bak"
:: Restore spawn region
if exist "r.0.0.mca.bak" copy "r.0.0.mca.bak" "r.0.0.mca"
if exist "r.0.-1.mca.bak" copy "r.0.-1.mca.bak" "r.0.-1.mca"
if exist "r.-1.0.mca.bak" copy "r.-1.0.mca.bak" "r.-1.0.mca"
if exist "r.-1.-1.mca.bak" copy "r.-1.-1.mca.bak" "r.-1.-1.mca"
popd
You can’t perform that action at this time.