summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-19 17:23:59 +0200
committerMattes D <github@xoft.cz>2015-04-19 17:23:59 +0200
commit206932b94dad2546d2ef8e18bc9e4cf90839d7a4 (patch)
treeacb568416f2758baf92ac504664eb967bc7e5c5f /MCServer/Plugins/APIDump
parentAdded cPluginManager:IsPluginLoaded() API, better load error msgs. (diff)
downloadcuberite-206932b94dad2546d2ef8e18bc9e4cf90839d7a4.tar
cuberite-206932b94dad2546d2ef8e18bc9e4cf90839d7a4.tar.gz
cuberite-206932b94dad2546d2ef8e18bc9e4cf90839d7a4.tar.bz2
cuberite-206932b94dad2546d2ef8e18bc9e4cf90839d7a4.tar.lz
cuberite-206932b94dad2546d2ef8e18bc9e4cf90839d7a4.tar.xz
cuberite-206932b94dad2546d2ef8e18bc9e4cf90839d7a4.tar.zst
cuberite-206932b94dad2546d2ef8e18bc9e4cf90839d7a4.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/Classes/Plugins.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/Classes/Plugins.lua b/MCServer/Plugins/APIDump/Classes/Plugins.lua
index 20e2afe23..fa502ccfc 100644
--- a/MCServer/Plugins/APIDump/Classes/Plugins.lua
+++ b/MCServer/Plugins/APIDump/Classes/Plugins.lua
@@ -82,6 +82,7 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage);
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)" },
+ IsPluginLoaded = { Params = "PluginName", Return = "", Notes = "Returns true if the specified plugin is loaded." },
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." },
LogStackTrace = { Params = "", Return = "", Notes = "(STATIC) Logs a current stack trace of the Lua engine to the server console log. Same format as is used when the plugin fails." },
RefreshPluginList = { Params = "", Return = "", Notes = "Refreshes the list of plugins to include all folders inside the Plugins folder (potentially new disabled plugins)" },