diff --git a/lgsm/modules/command_dev_details.sh b/lgsm/modules/command_dev_details.sh index 4b02ab678..38996ec4b 100644 --- a/lgsm/modules/command_dev_details.sh +++ b/lgsm/modules/command_dev_details.sh @@ -11,13 +11,17 @@ echo -e "==================================================================" echo -e "" echo -e "Game: ${gamename}" echo -e "Short Name: ${shortname}" -echo -e "Directory: ${rootdir}" -echo -e "Binary: ${executable}" echo -e "Config: ${servercfgfullpath}" +echo -e "Config Type: ${configtype}" +echo -e "" +echo -e "${lightgreen}Ports${default}" +echo -e "=================================" echo -e "Port: ${port}" echo -e "Query Port: ${queryport}" - -echo -e "Servername: ${servername}" +echo -e "" +echo -e "${lightgreen}Server Details${default}" +echo -e "=================================" +echo -e "Servername: ${servername} ${servernameorigin}" echo -e "Server Password: ${serverpassword}" echo -e "RCON Password: ${rconpassword}" echo -e "Admin Password: ${adminpassword}" @@ -25,6 +29,13 @@ echo -e "Maxplayers: ${maxplayers}" echo -e "Tickrate: ${tickrate}" echo -e "Default Map: ${defaultmap}" echo -e "Game Mode: ${gamemode}" +echo -e "Game Type: ${gametype}" echo -e "RCON Enabled: ${rconenabled}" echo -e "RCON Password: ${rconpassword}" echo -e "Config IP: ${configip}" +echo -e "Web Admin Enabled: ${webadminenabled}" +echo -e "Web Admin User: ${webadminuser}" +echo -e "Web Admin Password: ${webadminpassword}" +echo -e "Reserved Slots: ${reservedslots}" +echo -e "World Name: ${worldname}" +echo -e "World Type: ${worldtype}" diff --git a/lgsm/modules/info_game.sh b/lgsm/modules/info_game.sh index c48de2d24..21e15834d 100644 --- a/lgsm/modules/info_game.sh +++ b/lgsm/modules/info_game.sh @@ -30,6 +30,8 @@ fn_info_game_ini() { servercfgfullpath="${3}" fi eval "${1}"="$(sed -n "/^[[:space:]]*\<${2}\>/ { s/.*= *//p;q }" "${servercfgfullpath}")" + eval "${1}origin"="config" + configtype="ini" } # Config Type: QuakeC @@ -359,7 +361,6 @@ fn_info_game_pstbs() { fi rconport="${rconport:-"0"}" reservedslots="${reservedslots:-"0"}" - reservedslots=${reservedslots:-"0"} servername="${servername:-"NOT SET"}" serverpassword="${serverpassword:-"NOT SET"}" tickrate="${tickrate:-"0"}"