diff --git a/ARKSurvivalEvolved/cfg/lgsm-default.ini b/ARKSurvivalEvolved/cfg/lgsm-default.ini index 53975e746..e14a10c6f 100644 --- a/ARKSurvivalEvolved/cfg/lgsm-default.ini +++ b/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 diff --git a/functions/fn_details_config b/functions/fn_details_config index 1bd5f9c15..744d89922 100644 --- a/functions/fn_details_config +++ b/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