partey_workadventure/maps/tests/Metadata/getCurrentRoom.js
2021-07-05 14:41:10 +02:00

12 lines
331 B
JavaScript

WA.onInit().then(() => {
console.log('id: ', WA.room.id);
console.log('Map URL: ', WA.room.mapURL);
console.log('Player name: ', WA.player.name);
console.log('Player id: ', WA.player.id);
console.log('Player tags: ', WA.player.tags);
});
WA.room.getMap().then((data) => {
console.log('Map data', data);
})