parent
91d70b87e5
commit
4a1b78787f
30
MCServer/settings_apidump.ini
Normal file
30
MCServer/settings_apidump.ini
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
; This settings file is used by the $/MakeLuaAPI.cmd script
|
||||||
|
; It is copied over settings.ini so that the APIDump plugin gets loaded upon server start
|
||||||
|
|
||||||
|
[Server]
|
||||||
|
Description=MCServer - in C++!
|
||||||
|
MaxPlayers=100
|
||||||
|
HardcoreEnabled=0
|
||||||
|
Port=25565
|
||||||
|
PortsIPv6=
|
||||||
|
DefaultViewDistance=10
|
||||||
|
|
||||||
|
[RCON]
|
||||||
|
Enabled=0
|
||||||
|
|
||||||
|
[Authentication]
|
||||||
|
Authenticate=1
|
||||||
|
Server=session.minecraft.net
|
||||||
|
Address=/game/checkserver.jsp?user=%USERNAME%&serverId=%SERVERID%
|
||||||
|
|
||||||
|
[Worlds]
|
||||||
|
; World=secondworld
|
||||||
|
DefaultWorld=world
|
||||||
|
|
||||||
|
[Plugins]
|
||||||
|
Plugin=APIDump
|
||||||
|
|
||||||
|
[DeadlockDetect]
|
||||||
|
Enabled=0
|
||||||
|
IntervalSec=20
|
||||||
|
|
@ -29,6 +29,7 @@ if "a%ftpsite%" == "a" (
|
|||||||
:: Create the API documentation by running the server and stopping it right after it starts:
|
:: Create the API documentation by running the server and stopping it right after it starts:
|
||||||
|
|
||||||
cd MCServer
|
cd MCServer
|
||||||
|
copy /Y settings_apidump.ini settings.ini
|
||||||
echo stop | MCServer
|
echo stop | MCServer
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ if "a%ftpsite%" == "a" (
|
|||||||
|
|
||||||
|
|
||||||
:: Get the date and time into vars:
|
:: Get the date and time into vars:
|
||||||
|
:: This is locale-dependent!
|
||||||
For /f "tokens=2-4 delims=/. " %%a in ('date /t') do (
|
For /f "tokens=2-4 delims=/. " %%a in ('date /t') do (
|
||||||
set MYYEAR=%%c
|
set MYYEAR=%%c
|
||||||
set MYMONTH=%%b
|
set MYMONTH=%%b
|
||||||
@ -66,13 +67,11 @@ if errorlevel 1 goto haderror
|
|||||||
|
|
||||||
|
|
||||||
:: Update the external plugins to the latest revision:
|
:: Update the external plugins to the latest revision:
|
||||||
cd MCServer\Plugins\Core
|
git submodule update
|
||||||
git pull
|
|
||||||
if errorlevel 1 goto haderror
|
if errorlevel 1 goto haderror
|
||||||
cd ..\ProtectionAreas
|
|
||||||
git pull
|
|
||||||
if errorlevel 1 goto haderror
|
|
||||||
cd ..\..\..
|
|
||||||
|
|
||||||
:: Get the Git commit ID into an environment var
|
:: Get the Git commit ID into an environment var
|
||||||
For /f "tokens=1 delims=/. " %%a in ('git log -1 --oneline --no-abbrev-commit') do (set COMMITID=%%a)
|
For /f "tokens=1 delims=/. " %%a in ('git log -1 --oneline --no-abbrev-commit') do (set COMMITID=%%a)
|
||||||
@ -114,9 +113,23 @@ if errorlevel 1 goto haderror
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
:: Generate the .example.ini files by running the server without any ini files:
|
||||||
|
cd MCServer
|
||||||
|
del groups.ini
|
||||||
|
del settings.ini
|
||||||
|
del webadmin.ini
|
||||||
|
echo stop | MCServer
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
:: Copy all the example ini files into the Install folder for zipping:
|
:: Copy all the example ini files into the Install folder for zipping:
|
||||||
copy MCServer\*.example.ini Install\
|
copy MCServer\groups.ini Install\groups.example.ini
|
||||||
|
copy MCServer\settings.ini Install\settings.example.ini
|
||||||
|
copy MCServer\webadmin.ini Install\webadmin.example.ini
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
:: Use 7-zip to compress the resulting files into a single file:
|
:: Use 7-zip to compress the resulting files into a single file:
|
||||||
set FILESUFFIX=%MYYEAR%_%MYMONTH%_%MYDAY%_%MYTIME%_%COMMITID%
|
set FILESUFFIX=%MYYEAR%_%MYMONTH%_%MYDAY%_%MYTIME%_%COMMITID%
|
||||||
|
Loading…
Reference in New Issue
Block a user