summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-10-04 20:58:25 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2013-10-04 20:58:25 +0200
commitfdc67142fd589a93840308a3eb1845a203d2cbec (patch)
tree8322ce7ced67f313902923382a1458f8c7b3225c
parentAPIDump: Added the cWorld:IsWeatherXXX() functions. (diff)
downloadcuberite-fdc67142fd589a93840308a3eb1845a203d2cbec.tar
cuberite-fdc67142fd589a93840308a3eb1845a203d2cbec.tar.gz
cuberite-fdc67142fd589a93840308a3eb1845a203d2cbec.tar.bz2
cuberite-fdc67142fd589a93840308a3eb1845a203d2cbec.tar.lz
cuberite-fdc67142fd589a93840308a3eb1845a203d2cbec.tar.xz
cuberite-fdc67142fd589a93840308a3eb1845a203d2cbec.tar.zst
cuberite-fdc67142fd589a93840308a3eb1845a203d2cbec.zip
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 6d0b72c14..5779e18bc 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -1347,14 +1347,18 @@ a_Player:OpenWindow(Window);
cPlugin =
{
- Desc = [[cPlugin describes a Lua plugin. This page is dedicated to new-style plugins and contain their functions.
+ Desc = [[cPlugin describes a Lua plugin. This page is dedicated to new-style plugins and contain their functions. Each plugin has its own Plugin object.
]],
Functions =
{
- GetName = { Return = "string" },
- SetName = { Return = "" },
- GetVersion = { Notes = "int" },
- SetVersion = { Return = "" },
+ Call = { Params = "Function name, [All the parameters divided with commas]", Notes = "This function allows you to call a function from another plugin. It can only use pass: integers, booleans, strings and usertypes (cPlayer, cEntity, cCuboid, etc.)." },
+ GetDirectory = { Return = "string", Notes = "Returns the name of the folder where the plugin's files are. (APIDump)" },
+ GetLocalDirectory = { Notes = "OBSOLETE use GetLocalFolder instead." },
+ GetLocalFolder = { Return = "string", Notes = "Returns the path where the plugin's files are. (Plugins/APIDump)" },
+ GetName = { Return = "string", Notes = "Returns the name of the plugin." },
+ SetName = { Params = "string", Notes = "Sets the name of the Plugin." },
+ GetVersion = { Return = "number", Notes = "Returns the version of the plugin." },
+ SetVersion = { Params = "number", Notes = "Sets the version of the plugin." },
GetFileName = { Return = "string" },
CreateWebPlugin = { Notes = "{{cWebPlugin|cWebPlugin}}" },
},