Allow use of {name} in Pl3xmap/Squaremap heads-url. Fixes #462.
This commit is contained in:
parent
89e6fcf33d
commit
8666f87383
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user