Changeset 259 for scripts/usr/local/lib/7dtd/monitor-log.sh
- Timestamp:
- Mar 17, 2016, 6:16:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/monitor-log.sh
r258 r259 42 42 logPlayerConnect $INSTANCE "$entityId" "$name" "$steamId" "$ip" 43 43 44 for H in $(getHooksFor playerConnect ); do44 for H in $(getHooksFor playerConnect $INSTANCE); do 45 45 $H $INSTANCE "$entityId" "$name" "$steamId" "$ip" 46 46 done … … 53 53 logPlayerDisconnect $INSTANCE "$entityId" 54 54 55 for H in $(getHooksFor playerDisconnect ); do55 for H in $(getHooksFor playerDisconnect $INSTANCE); do 56 56 $H $INSTANCE "$playerId" "$entityId" "$NICKNAME" "$STEAMID" 57 57 done … … 61 61 echo "$(timestamp): $1" >> $CHATLOG 62 62 63 for H in $(getHooksFor chat ); do63 for H in $(getHooksFor chat $INSTANCE); do 64 64 $H $INSTANCE "$1" 65 65 done … … 72 72 echo "$(timestamp): Player \"$name\" executed \"$cmd\"" >> $COMMANDLOG 73 73 74 for H in $(getHooksFor remoteCommand ); do74 for H in $(getHooksFor remoteCommand $INSTANCE); do 75 75 $H $INSTANCE "$cmd" "$name" 76 76 done … … 83 83 echo "$(timestamp): Telnet from \"$ip\" executed \"$cmd\"" >> $COMMANDLOG 84 84 85 for H in $(getHooksFor telnetCommand ); do85 for H in $(getHooksFor telnetCommand $INSTANCE); do 86 86 $H $INSTANCE "$cmd" "$ip" 87 87 done
Note:
See TracChangeset
for help on using the changeset viewer.