Ignore:
Timestamp:
Oct 6, 2016, 4:45:58 PM (8 years ago)
Author:
alloc
Message:

Scripts 103

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/playerlog.sh

    r258 r294  
    4949#   3: Steam ID
    5050#   4: Nick name
     51#   5: IP
     52#   6: Steam Owner ID
    5153logPlayerConnect() {
    5254        local ENTITYID="$2"
     
    5456        local STEAMID="$4"
    5557        local IP="$5"
     58        local OWNERID="$6"
    5659
    57         echo "$(timestamp) +++ $ENTITYID $NICKNAME $STEAMID $IP" >> "$PLAYERSLOG"
     60        echo "$(timestamp) +++ $ENTITYID $NICKNAME $STEAMID $IP $OWNERID" >> "$PLAYERSLOG"
    5861
    5962        createPlayerList
     
    7275                        -i "$XPATHBASE" -t attr -n "entityid" -v "$ENTITYID" \
    7376                        -i "$XPATHBASE" -t attr -n "lastIp" -v "$IP" \
     77                        -i "$XPATHBASE" -t attr -n "steamOwner" -v "$OWNERID" \
    7478                        "$PLAYERSXML"
    7579        else
     
    8387                        -u "$XPATHBASE/@logins" -v "$LOGINS" \
    8488                        -u "$XPATHBASE/@lastIp" -v "$IP" \
     89                        -u "$XPATHBASE/@steamOwner" -v "$OWNERID" \
    8590                        "$PLAYERSXML"
    8691        fi
Note: See TracChangeset for help on using the changeset viewer.