Use event.setRespawnLocation instead of player.teleport