summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-28 17:09:39 +0200
committermadmaxoft <github@xoft.cz>2014-07-28 17:09:39 +0200
commit1acd03f96f9b1133e1f76d76004f5fcddd0c4788 (patch)
treeb537891a4f872f5c47c8e6331c39f6f6e89ff563 /MCServer/Plugins/APIDump/APIDesc.lua
parentcAuthenticator: Added GetUUIDsFromPlayerNames(). (diff)
downloadcuberite-1acd03f96f9b1133e1f76d76004f5fcddd0c4788.tar
cuberite-1acd03f96f9b1133e1f76d76004f5fcddd0c4788.tar.gz
cuberite-1acd03f96f9b1133e1f76d76004f5fcddd0c4788.tar.bz2
cuberite-1acd03f96f9b1133e1f76d76004f5fcddd0c4788.tar.lz
cuberite-1acd03f96f9b1133e1f76d76004f5fcddd0c4788.tar.xz
cuberite-1acd03f96f9b1133e1f76d76004f5fcddd0c4788.tar.zst
cuberite-1acd03f96f9b1133e1f76d76004f5fcddd0c4788.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index e65da1d16..f29c47338 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -529,6 +529,7 @@ end
GetPlayer = { Params = "", Return = "{{cPlayer|cPlayer}}", Notes = "Returns the player object connected to this client. Note that this may be nil, for example if the player object is not yet spawned." },
GetUniqueID = { Params = "", Return = "number", Notes = "Returns the UniqueID of the client used to identify the client in the server" },
GetUUID = { Params = "", Return = "string", Notes = "Returns the authentication-based UUID of the client. This UUID should be used to identify the player when persisting any player-related data." },
+ GetUUIDsFromPlayerNames = { Params = "PlayerNames", Return = "table", Notes = "(STATIC) Returns a table that contains the map, 'PlayerName' -> 'UUID', for all valid playernames in the input array-table. PlayerNames not recognized will not be set in the returned map. Queries the Mojang servers for the results. <b>WARNING</b>: Do NOT use this function while the server is running. Only use it when the server is starting up (inside the Initialize() method), otherwise you will lag the server severely. <b>NOTE</b>: Mojang API has a limit of 100 names per query and 600 queries per 10 minutes (may change)" },
GetUsername = { Params = "", Return = "string", Notes = "Returns the username that the client has provided" },
GetViewDistance = { Params = "", Return = "number", Notes = "Returns the viewdistance (number of chunks loaded for the player in each direction)" },
HasPluginChannel = { Params = "ChannelName", Return = "bool", Notes = "Returns true if the client has registered to receive messages on the specified plugin channel." },