diff options
author | madmaxoft <github@xoft.cz> | 2014-02-17 23:39:53 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-02-17 23:39:53 +0100 |
commit | 89ef81b5e887d5abdace921974f2863926778824 (patch) | |
tree | 7d805b62a315a97c205a60afca450907cc69269b /MCServer | |
parent | Added cPluginManager:GetPluginsPath() to the Lua API. (diff) | |
download | cuberite-89ef81b5e887d5abdace921974f2863926778824.tar cuberite-89ef81b5e887d5abdace921974f2863926778824.tar.gz cuberite-89ef81b5e887d5abdace921974f2863926778824.tar.bz2 cuberite-89ef81b5e887d5abdace921974f2863926778824.tar.lz cuberite-89ef81b5e887d5abdace921974f2863926778824.tar.xz cuberite-89ef81b5e887d5abdace921974f2863926778824.tar.zst cuberite-89ef81b5e887d5abdace921974f2863926778824.zip |
Diffstat (limited to 'MCServer')
-rw-r--r-- | MCServer/Plugins/APIDump/APIDesc.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index 34aff5ddb..b0d31e7a8 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -1749,6 +1749,7 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage); 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}}", Notes = "(<b>DEPRECATED, UNSAFE</b>) Returns a plugin handle of the specified plugin, or nil if such plugin is not loaded. Note thatdue to multithreading the handle is not guaranteed to be safe for use when stored - a single-plugin reload may have been triggered in the mean time for the requested plugin." }, + GetPluginsPath = { Params = "", Return = "string", Notes = "Returns the path where the individual plugin folders are located. Doesn't include the path separator at the end of the returned string." }, 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." }, |