summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Debuggers
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-30 13:53:23 +0200
committermadmaxoft <github@xoft.cz>2014-07-30 13:56:30 +0200
commitafef7a79d7a214eec66e427da589172a40a18fef (patch)
treee3e42e9989d545258830caa5f18a6cca8d76960c /MCServer/Plugins/Debuggers
parentMojangAPI: Implemented UUID shortening and dashing. (diff)
downloadcuberite-afef7a79d7a214eec66e427da589172a40a18fef.tar
cuberite-afef7a79d7a214eec66e427da589172a40a18fef.tar.gz
cuberite-afef7a79d7a214eec66e427da589172a40a18fef.tar.bz2
cuberite-afef7a79d7a214eec66e427da589172a40a18fef.tar.lz
cuberite-afef7a79d7a214eec66e427da589172a40a18fef.tar.xz
cuberite-afef7a79d7a214eec66e427da589172a40a18fef.tar.zst
cuberite-afef7a79d7a214eec66e427da589172a40a18fef.zip
Diffstat (limited to 'MCServer/Plugins/Debuggers')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index 80416acc7..575d696cb 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -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