summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-03-01 13:27:55 +0100
committerandrew <xdotftw@gmail.com>2014-03-01 13:27:55 +0100
commit39c8e68ef030b70f1f50165e74d26100bc1988cc (patch)
treec99189a7f33d75f61b81cf0e8a2e8e7b5755236e /MCServer/Plugins/APIDump
parentShortened enums (diff)
downloadcuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar
cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.gz
cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.bz2
cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.lz
cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.xz
cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.tar.zst
cuberite-39c8e68ef030b70f1f50165e74d26100bc1988cc.zip
Diffstat (limited to '')
-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 5bc69eb24..e45c5c475 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -1866,6 +1866,7 @@ end
{
AddPlayerScore = { Params = "Name, Type, Value", Return = "", Notes = "Adds a value to all player scores of the specified objective type." },
ForEachObjective = { Params = "CallBackFunction, [CallbackData]", Return = "bool", Notes = "Calls the specified callback for each objective in the scoreboard. Returns true if all objectives have been processed (including when there are zero objectives), or false if the callback function has aborted the enumeration by returning true. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cObjective|Objective}}, [CallbackData])</pre> The callback should return false or no value to continue with the next objective, or true to abort the enumeration." },
+ ForEachTeam = { Params = "CallBackFunction, [CallbackData]", Return = "bool", Notes = "Calls the specified callback for each team in the scoreboard. Returns true if all teams have been processed (including when there are zero teams), or false if the callback function has aborted the enumeration by returning true. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cObjective|Objective}}, [CallbackData])</pre> The callback should return false or no value to continue with the next team, or true to abort the enumeration." },
GetNumObjectives = { Params = "", Return = "number", Notes = "Returns the nuber of registered objectives." },
GetNumTeams = { Params = "", Return = "number", Notes = "Returns the number of registered teams." },
GetObjective = { Params = "string", Return = "{{cObjective}}", Notes = "Returns the objective with the specified name." },