From 4a3f667223ed29d5df0eacdc5105bc41fedf6dbc Mon Sep 17 00:00:00 2001 From: Carsten Date: Sun, 1 Dec 2013 02:38:49 +0100 Subject: [PATCH] fix for new player id field in plext Signed-off-by: Carsten --- plugins/player-tracker.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/player-tracker.user.js b/plugins/player-tracker.user.js index d7fa45c5..ba6f7181 100644 --- a/plugins/player-tracker.user.js +++ b/plugins/player-tracker.user.js @@ -165,7 +165,7 @@ window.plugin.playerTracker.processNewData = function(data) { } break; case 'PLAYER': - pguid = markup[1].guid; + pguid = markup[1].plain; break; case 'PORTAL': // link messages are “player linked X to Y” and the player is at @@ -196,7 +196,7 @@ window.plugin.playerTracker.processNewData = function(data) { if(!playerData || playerData.events.length === 0) { plugin.playerTracker.stored[pguid] = { // this always resolves, as the chat delivers this data - nick: window.getPlayerName(pguid), + nick: pguid, team: json[2].plext.team, events: [newEvent] };