Found this in the Connect 2 Chat mod I've referenced like 100 times, lol.
function Connect2ChatConductor::FriendsList_GetUserIdByName(%this,%name)
{
%Name = StrLwr(StrReplace(%Name," ","_"));
%Group = RTBCC_Roster.GetObject(0);
if(IsObject(%Group))
{
%GroupCount = %Group.GetCount();
for(%i=0;%i<%GroupCount;%i++)
{
%UserData = %Group.GetObject(%i);
if(IsObject(%UserData))
{
%UserName = StrReplace(%UserData.Name," ","_");
if(StrStr(strLwr(%UserName),strLwr(%Name)) >= 0)
{
return %UserData.ID;
}
}
}
}
return false;
}
function Connect2ChatConductor::FriendsList_GetUserNameById(%this,%Id)
{
%Group = RTBCC_Roster.GetObject(0);
if(IsObject(%Group))
{
%GroupCount = %Group.GetCount();
for(%i=0;%i<%GroupCount;%i++)
{
%UserData = %Group.GetObject(%i);
if(IsObject(%UserData))
{
if(%userData.ID == %Id)
return %UserData.Name;
}
}
}
return false;
}
Then grab either the blockland id, or name from the player list, and use the functions accordingly to achieve your desired results.