Allow use of {name} in Pl3xmap/Squaremap heads-url. Fixes #462.

This commit is contained in:
James Lyne 2022-06-17 11:51:24 +01:00
parent 89e6fcf33d
commit 8666f87383

View File

@ -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 = {