Skip to content

Commit

Permalink
fix missing serverpassword detail (GameServerManagers#4596)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 authored Jun 15, 2024
1 parent 164f950 commit 0e7314d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 4 additions & 6 deletions lgsm/modules/command_dev_parse_game_details.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ declare -A server_details=(
['Max Players']="${maxplayers}"
['Mod Server Port']="${modserverport}"
['OldQueryPortNumber']="${oldqueryportnumber}"
['Password']="${password}"
['Port 401']="${port401}"
['Port IPv6']="${portipv6}"
['Port']="${port}"
Expand All @@ -85,7 +84,6 @@ declare -A server_details=(
['Queue Port']="${queueport}"
['Random Map']="${randommap}"
['Raw Port']="${rawport}"
['RC Password']="${rcpassword}"
['RCON Enabled']="${rconenabled}"
['RCON Password']="${rconpassword}"
['RCON Port']="${rconport}"
Expand Down Expand Up @@ -133,7 +131,7 @@ missing_details=""

# Loop through the server details and store them.
for key in "${!server_details[@]}"; do
value=${server_details[$key]}
value=${server_details[$key]}
if [ -n "$value" ]; then
available_details+="${lightblue}${key}: ${default}${value}\n"
else
Expand All @@ -144,9 +142,9 @@ done
# Sort and output the available distro details.
if [ -n "$available_details" ]; then
echo -e ""
echo -e "${bold}${lightgreen}Available Gameserver Details${default}"
fn_messages_separator
echo -e "${available_details}" | sort
echo -e "${bold}${lightgreen}Available Gameserver Details${default}"
fn_messages_separator
echo -e "${available_details}" | sort
fi

# Output the missing server details if there are any.
Expand Down
6 changes: 3 additions & 3 deletions lgsm/modules/info_game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ fn_info_game_col() {
maxplayers="${maxplayers:-"0"}"
port="${port:-"0"}"
queryport="${port:-"0"}"
rcpassword="${rconpassword:-"NOT SET"}"
rconpassword="${rconpassword:-"NOT SET"}"
servername="${servername:-"NOT SET"}"
serverpassword="${serverpassword:-"NOT SET"}"
steamport="${steamport:-"0"}"
Expand All @@ -1174,11 +1174,11 @@ fn_info_game_cs2() {
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_valve_keyvalues "servername" "hostname"
fn_info_game_valve_keyvalues "defaultmap" "map"
fn_info_game_valve_keyvalues "password" "sv_password"
fn_info_game_valve_keyvalues "serverpassword" "sv_password"
fi
defaultmap="${defaultmap:-"NOT SET"}"
maxplayers="${maxplayers:-"0"}"
password="${password:-"NOT SET"}"
serverpassword="${serverpassword:-"NOT SET"}"
port="${port:-"0"}"
queryport="${port:-"0"}"
servername="${servername:-"NOT SET"}"
Expand Down

0 comments on commit 0e7314d

Please sign in to comment.