Yea that should work, except it's actually $pref::Player::NetNameSince it's stored after $pref:: you shouldn't need to wait until the game connects to the master server unless it's immediately changed on start.