Skip to content

Commit

Permalink
fixed get_playername correctly for player logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
MusclePr committed Apr 22, 2024
1 parent 3150a39 commit fefb96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/player_logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ get_steamid(){

get_playername(){
local player_info="${1}"
echo "${player_info}" | sed -E 's/,([0-9]+),[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]//g'
echo "${player_info}" | sed -E 's/,([0-9A-Z]+),[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]//g'
}

# Prefer REST API
Expand Down

0 comments on commit fefb96a

Please sign in to comment.