summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2020-10-13 22:59:11 +0200
committerGitHub <noreply@github.com>2020-10-13 22:59:11 +0200
commitaee4778bf7268212b918c2ef2b7a61801aaa97cf (patch)
tree856db0146b0ee3ab67b03b9ffd28d7f84dcd9d86 /Server/Plugins/APIDump/APIDesc.lua
parentRemove debug output on PieceStructuresGen.cpp (#4984) (diff)
downloadcuberite-aee4778bf7268212b918c2ef2b7a61801aaa97cf.tar
cuberite-aee4778bf7268212b918c2ef2b7a61801aaa97cf.tar.gz
cuberite-aee4778bf7268212b918c2ef2b7a61801aaa97cf.tar.bz2
cuberite-aee4778bf7268212b918c2ef2b7a61801aaa97cf.tar.lz
cuberite-aee4778bf7268212b918c2ef2b7a61801aaa97cf.tar.xz
cuberite-aee4778bf7268212b918c2ef2b7a61801aaa97cf.tar.zst
cuberite-aee4778bf7268212b918c2ef2b7a61801aaa97cf.zip
Diffstat (limited to 'Server/Plugins/APIDump/APIDesc.lua')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua18
1 files changed, 15 insertions, 3 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index 6cfcb9c15..f1346ffee 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -11377,6 +11377,12 @@ a_Player:OpenWindow(Window);
Type = "function",
},
},
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
Notes = "Calls the given callback function for each player. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cPlayer|cPlayer}})</pre>",
},
ForEachWorld =
@@ -11388,7 +11394,13 @@ a_Player:OpenWindow(Window);
Type = "function",
},
},
- Notes = "Calls the given callback function for each world. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cWorld|cWorld}})</pre>",
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Calls the given callback function for each world. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cWorld|cWorld}})</pre>. Returns false if a callback aborts, otherwise true.",
},
Get =
{
@@ -12521,7 +12533,7 @@ local CompressedString = cStringCompression.CompressStringGZIP("DataToCompress")
},
{
Name = "Port",
- Type = "string",
+ Type = "number",
},
{
Name = "Path",
@@ -12564,7 +12576,7 @@ local CompressedString = cStringCompression.CompressStringGZIP("DataToCompress")
},
{
Name = "Port",
- Type = "string",
+ Type = "number",
},
},
Notes = "Parses the Authority part of the URL. Parts that are not explicitly specified in the AuthPart are returned empty, the port is returned zero. If parsing fails, the function returns nil and an error message.",