summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-03 21:32:53 +0200
committermadmaxoft <github@xoft.cz>2014-08-03 22:04:51 +0200
commitf5aaf52210369862a045c074429428012607c445 (patch)
treedb2db945fac098c5c8e88204aa4b0b7cc78df746 /MCServer
parentcMojangAPI: Added UUID-to-Name lookup. (diff)
downloadcuberite-f5aaf52210369862a045c074429428012607c445.tar
cuberite-f5aaf52210369862a045c074429428012607c445.tar.gz
cuberite-f5aaf52210369862a045c074429428012607c445.tar.bz2
cuberite-f5aaf52210369862a045c074429428012607c445.tar.lz
cuberite-f5aaf52210369862a045c074429428012607c445.tar.xz
cuberite-f5aaf52210369862a045c074429428012607c445.tar.zst
cuberite-f5aaf52210369862a045c074429428012607c445.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index 075cfa40c..7e220952e 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -339,6 +339,13 @@ function TestUUIDFromName()
end
LOG("UUID-from-Name resolution tests finished.")
+
+ LOG("Performing a Name-from-UUID test...")
+ -- local NameToTest = "aloe_vera"
+ local NameToTest = "xoft"
+ local Name = cMojangAPI:GetPlayerNameFromUUID(UUIDs[NameToTest])
+ LOG("Name(" .. UUIDs[NameToTest] .. ") = '" .. Name .. "', expected '" .. NameToTest .. "'.")
+ LOG("Name-from-UUID test finished.")
end