Changeset 87 for scripts/usr/local/lib/7dtd/playerlog.sh
- Timestamp:
- Jul 19, 2014, 1:53:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/playerlog.sh
r71 r87 24 24 -u "/Players/Player/@online" -v "false" \ 25 25 "$PLAYERSXML" 26 rm $(getInstancePath $INSTANCE)/logs/current_players.log 27 ln -s $PLAYERSLOG $(getInstancePath $INSTANCE)/logs/current_players.log 26 28 } 27 29 … … 33 35 # 4: Nick name 34 36 logPlayerConnect() { 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" 38 41 39 echo "$(timestamp) +++ $ENTITYID $NICKNAME $STEAMID " >> "$PLAYERSLOG"42 echo "$(timestamp) +++ $ENTITYID $NICKNAME $STEAMID $IP" >> "$PLAYERSLOG" 40 43 41 44 createPlayerList … … 53 56 -i "$XPATHBASE" -t attr -n "online" -v "true" \ 54 57 -i "$XPATHBASE" -t attr -n "entityid" -v "$ENTITYID" \ 58 -i "$XPATHBASE" -t attr -n "lastIp" -v "$IP" \ 55 59 "$PLAYERSXML" 56 60 else … … 62 66 -u "$XPATHBASE/@entityid" -v "$ENTITYID" \ 63 67 -u "$XPATHBASE/@logins" -v "$LOGINS" \ 68 -u "$XPATHBASE/@lastIp" -v "$IP" \ 64 69 "$PLAYERSXML" 65 70 fi
Note:
See TracChangeset
for help on using the changeset viewer.