From 8666f87383c62d9265939c3d30c7f6313b84a937 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Fri, 17 Jun 2022 11:51:24 +0100 Subject: [PATCH] Allow use of {name} in Pl3xmap/Squaremap heads-url. Fixes #462. --- src/providers/Pl3xmapMapProvider.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/providers/Pl3xmapMapProvider.ts b/src/providers/Pl3xmapMapProvider.ts index c9fd235..78a3f4c 100644 --- a/src/providers/Pl3xmapMapProvider.ts +++ b/src/providers/Pl3xmapMapProvider.ts @@ -140,7 +140,8 @@ export default class Pl3xmapMapProvider extends MapProvider { if(worldResponse.player_tracker?.nameplates?.heads_url) { worldConfig.components.players!.imageUrl = entry => - worldResponse.player_tracker.nameplates.heads_url.replace('{uuid}', entry.uuid); + worldResponse.player_tracker.nameplates.heads_url + .replace('{uuid}', entry.uuid).replace('{name}', entry.name); } worldConfig.components.players!.markers = {