1
0

Debuggers: Updated for the new cMojangAPI changes.

This commit is contained in:
madmaxoft 2014-07-30 13:53:23 +02:00
parent 17a94b16ea
commit afef7a79d7

View File

@ -287,7 +287,7 @@ function TestUUIDFromName()
"nonexistent_player",
}
-- WARNING: Blocking operation! DO NOT USE IN TICK THREAD!
local UUIDs = cClientHandle:GetUUIDsFromPlayerNames(PlayerNames)
local UUIDs = cMojangAPI:GetUUIDsFromPlayerNames(PlayerNames)
-- Log the results:
for _, name in ipairs(PlayerNames) do
@ -299,6 +299,15 @@ function TestUUIDFromName()
end
end
-- Test once more with the same players, valid-only. This should go directly from cache, so fast.
LOG("Testing again with the same valid players...")
local ValidPlayerNames =
{
"xoft",
"aloe_vera",
}
UUIDs = cMojangAPI:GetUUIDsFromPlayerNames(ValidPlayerNames);
LOG("UUID-from-Name resolution test finished.")
end