Browse Source

Added details for arkserver

pull/475/head
Daniel Gibbs 10 years ago
parent
commit
8c58c41fb5
  1. 10
      ARKSurvivalEvolved/cfg/lgsm-default.ini
  2. 30
      functions/fn_details_config

10
ARKSurvivalEvolved/cfg/lgsm-default.ini

@ -34,13 +34,13 @@ ProximityVoiceChat=False
PvEStructureDecayDestructionPeriod=0.000000
PvEStructureDecayPeriodMultiplier=1.000000
RCONEnabled=True
RCONPort=32330 ;Change to your servers RCONPort.
RCONPort=32330
ResourcesRespawnPeriodMultiplier=1.000000
ServerAdminPassword=SERVER_ADMIN_PASSWORD_HERE
ServerAdminPassword=adminpassword
ServerCrosshair=False
ServerForceNoHUD=False
ServerHardcore=False
ServerPassword=SERVER_PASSWORD_HERE ; If none leave blank like so:ServerPassword=
ServerPassword=
ServerPVE=False
ShowMapPlayerLocation=False
StructureDamageMultiplier=1.000000
@ -131,5 +131,5 @@ MaxPlayers=127
;MultiHome=True ;If MultiHome=IPv4 is filled in. If not just remove any line containing MultiHome.
[MessageOfTheDay]
Message=SERVER_MESSAGE_HERE
Duration=SERVER_MESSAGE_TIME_IN_SECONDS_HERE
Message=Welcome to ARK Server
Duration=5

30
functions/fn_details_config

@ -655,4 +655,34 @@ elif [ "${engine}" == "unreal4" ]; then
servername="\e[0;31mUNAVAILABLE\e[0m"
fi
# server password
if [ -f "${servercfgfullpath}" ]; then
serverpassword=$(grep "ServerPassword=" "${servercfgfullpath}" | sed 's/ServerPassword=//g')
if [ ! -n "${serverpassword}" ]; then
serverpassword="NOT SET"
fi
else
serverpassword="\e[0;31mUNAVAILABLE\e[0m"
fi
# admin password
if [ -f "${servercfgfullpath}" ]; then
adminpassword=$(grep "ServerAdminPassword=" "${servercfgfullpath}" | sed 's/ServerAdminPassword=//g')
if [ ! -n "${adminpassword}" ]; then
adminpassword="NOT SET"
fi
else
adminpassword="\e[0;31mUNAVAILABLE\e[0m"
fi
# slots
if [ -f "${servercfgfullpath}" ]; then
slots=$(grep "MaxPlayers=" "${servercfgfullpath}" | tr -cd "[:digit:]")
if [ ! -n "${slots}" ]; then
slots="NOT SET"
fi
else
slots="\e[0;31mUNAVAILABLE\e[0m"
fi
fi

Loading…
Cancel
Save