Ignore:
Timestamp:
Jul 19, 2014, 1:53:35 PM (10 years ago)
Author:
alloc
Message:

v.32

File:
1 edited

Legend:

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

    r71 r87  
    2424                -u "/Players/Player/@online" -v "false" \
    2525                "$PLAYERSXML"
     26        rm $(getInstancePath $INSTANCE)/logs/current_players.log
     27        ln -s $PLAYERSLOG $(getInstancePath $INSTANCE)/logs/current_players.log
    2628}
    2729
     
    3335#   4: Nick name
    3436logPlayerConnect() {
    35         ENTITYID="$2"
    36         STEAMID="$3"
    37         NICKNAME="$4"
     37        local ENTITYID="$2"
     38        local NICKNAME="$3"
     39        local STEAMID="$4"
     40        local IP="$5"
    3841
    39         echo "$(timestamp) +++ $ENTITYID $NICKNAME $STEAMID" >> "$PLAYERSLOG"
     42        echo "$(timestamp) +++ $ENTITYID $NICKNAME $STEAMID $IP" >> "$PLAYERSLOG"
    4043
    4144        createPlayerList
     
    5356                        -i "$XPATHBASE" -t attr -n "online" -v "true" \
    5457                        -i "$XPATHBASE" -t attr -n "entityid" -v "$ENTITYID" \
     58                        -i "$XPATHBASE" -t attr -n "lastIp" -v "$IP" \
    5559                        "$PLAYERSXML"
    5660        else
     
    6266                        -u "$XPATHBASE/@entityid" -v "$ENTITYID" \
    6367                        -u "$XPATHBASE/@logins" -v "$LOGINS" \
     68                        -u "$XPATHBASE/@lastIp" -v "$IP" \
    6469                        "$PLAYERSXML"
    6570        fi
Note: See TracChangeset for help on using the changeset viewer.