Skip to content

Commit

Permalink
info
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Oct 29, 2023
1 parent 100465f commit 1005e38
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lgsm/modules/info_game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,24 @@ fn_info_game_stn() {
serverpassword="${serverpassword:-"NOT SET"}"
}

# Config Type: parameters
# Parameters: true
# Comment:
# Example: -ServerName="SERVERNAME"
# Filetype: parameters
fn_info_game_tf() {
beaconport="${beaconport:-"0"}"
gamemode="${gamemode:-"NOT SET"}"
maxplayers="${maxplayers:-"0"}"
port="${port:-"0"}"
queryport="${queryport:-"0"}"
saveinterval="${saveinterval:-"0"}"
servername="${servername:-"NOT SET"}"
serverpassword="${serverpassword:-"NOT SET"}"
shutdownport="${shutdownport:-"0"}"

}

# Config Type: ini
# Parameters: true
# Comment: ; or #
Expand Down Expand Up @@ -2372,6 +2390,8 @@ elif [ "${shortname}" == "stn" ]; then
fn_info_game_stn
elif [ "${shortname}" == "terraria" ]; then
fn_info_game_terraria
elif [ "${shortname}" == "tf" ]; then
fn_info_game_tf
elif [ "${shortname}" == "ti" ]; then
fn_info_game_ti
elif [ "${shortname}" == "ts3" ]; then
Expand Down
12 changes: 12 additions & 0 deletions lgsm/modules/info_messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1542,6 +1542,16 @@ fn_info_messages_tu() {
} | column -s $'\t' -t
}

fn_info_messages_tf() {
{
fn_port "header"
fn_port "Game" port udp
fn_port "Query" queryport tcp
fn_port "Beacon" beaconport udp
fn_port "Shutdown" shutdownport tcp
} | column -s $'\t' -t
}

fn_info_messages_ut2k4() {
{
fn_port "header"
Expand Down Expand Up @@ -1813,6 +1823,8 @@ fn_info_messages_select_engine() {
fn_info_messages_stn
elif [ "${shortname}" == "terraria" ]; then
fn_info_messages_terraria
elif [ "${shortname}" == "tf" ]; then
fn_info_messages_tf
elif [ "${shortname}" == "ti" ]; then
fn_info_messages_ti
elif [ "${shortname}" == "ts3" ]; then
Expand Down

0 comments on commit 1005e38

Please sign in to comment.