diff options
author | madmaxoft <github@xoft.cz> | 2013-12-05 22:06:52 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-12-05 22:06:52 +0100 |
commit | a02ed3b92e5d9693df3a31f57d3d93cd70e48417 (patch) | |
tree | 2b137a8b2f6b6e3f1db41e359b7cbe955b43610b /MCServer/Plugins | |
parent | Added cPluginManager:GetCurrentPlugin() to Lua API. (diff) | |
download | cuberite-a02ed3b92e5d9693df3a31f57d3d93cd70e48417.tar cuberite-a02ed3b92e5d9693df3a31f57d3d93cd70e48417.tar.gz cuberite-a02ed3b92e5d9693df3a31f57d3d93cd70e48417.tar.bz2 cuberite-a02ed3b92e5d9693df3a31f57d3d93cd70e48417.tar.lz cuberite-a02ed3b92e5d9693df3a31f57d3d93cd70e48417.tar.xz cuberite-a02ed3b92e5d9693df3a31f57d3d93cd70e48417.tar.zst cuberite-a02ed3b92e5d9693df3a31f57d3d93cd70e48417.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/APIDump/APIDesc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index 6545c1f9f..a08f6f24b 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -1715,8 +1715,9 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage); Get = { Params = "", Return = "cPluginManager", Notes = "Returns the single instance of the plugin manager" }, GetAllPlugins = { Params = "", Return = "table", Notes = "Returns a table (dictionary) of all plugins, [name => {{cPlugin}}] pairing." }, GetCommandPermission = { Params = "Command", Return = "Permission", Notes = "Returns the permission needed for executing the specified command" }, + GetCurrentPlugin = { Params = "", Return = "{{cPlugin}}", Notes = "Returns the {{cPlugin}} object for the calling plugin. This is the same object that the Initialize function receives as the argument." }, GetNumPlugins = { Params = "", Return = "number", Notes = "Returns the number of plugins, including the disabled ones" }, - GetPlugin = { Params = "PluginName", Return = "{{cPlugin|cPlugin}}", Notes = "Returns a plugin handle of the specified plugin" }, + GetPlugin = { Params = "PluginName", Return = "{{cPlugin}}", Notes = "Returns a plugin handle of the specified plugin" }, IsCommandBound = { Params = "Command", Return = "bool", Notes = "Returns true if in-game Command is already bound (by any plugin)" }, IsConsoleCommandBound = { Params = "Command", Return = "bool", Notes = "Returns true if console Command is already bound (by any plugin)" }, LoadPlugin = { Params = "PluginFolder", Return = "", Notes = "(<b>DEPRECATED</b>) Loads a plugin from the specified folder. NOTE: Loading plugins may be an unsafe operation and may result in a deadlock or a crash. This API is deprecated and might be removed." }, |