#Player join detection
1 messages · Page 1 of 1 (latest)
world.afterEvents.playerSpawn.subscribe(({player, initialSpawn}) => {
if (!initialSpawn) return
// stuff
})
your code
world.afterEvents.playerSpawn.subscribe(({ player, InitialSpawn }) => {
if (!InitialSpawn) return
player.runCommandAsync('tp -2000 203 -2000')
})``` like that ?
yes
initialspawn is for when player enters the world
Otherwise it runs each time the player respawns (after death)
player.teleport exists