wp_auth.getUserMeta( user_id, 'pubcomp_steam_id', function( data ) { if ( typeof data == 'string' ) { var id64 = new bignumber( data ); data = 'STEAM_0:' + id64.mod( new bignumber( '2' ) ).toString() + ':' + id64.subtract( new bignumber( '76561197960265728' ) ).shiftRight( 1 ).toString(); rcon.send( 'pubcomp_add_steamid ' + data ); client.send({ 'joinserver': config.SERVERIP + ':27015' }); return; } } );