diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-10-04 20:58:25 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-10-04 20:58:25 +0200 |
commit | fdc67142fd589a93840308a3eb1845a203d2cbec (patch) | |
tree | 8322ce7ced67f313902923382a1458f8c7b3225c /MCServer/Plugins/APIDump | |
parent | APIDump: Added the cWorld:IsWeatherXXX() functions. (diff) | |
download | cuberite-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 |
Diffstat (limited to 'MCServer/Plugins/APIDump')
-rw-r--r-- | MCServer/Plugins/APIDump/APIDesc.lua | 14 |
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}}" }, }, |