summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-09-08 23:06:38 +0200
committerMattes D <github@xoft.cz>2016-09-08 23:06:38 +0200
commitc83b051c1a3e68fc9315ffffb277dc3da86cf02a (patch)
treeebeaecdae03270828bfd67a5e3ded584f0c74989 /src/Bindings
parentAPIDump: Removed trailing whitespace. (diff)
downloadcuberite-c83b051c1a3e68fc9315ffffb277dc3da86cf02a.tar
cuberite-c83b051c1a3e68fc9315ffffb277dc3da86cf02a.tar.gz
cuberite-c83b051c1a3e68fc9315ffffb277dc3da86cf02a.tar.bz2
cuberite-c83b051c1a3e68fc9315ffffb277dc3da86cf02a.tar.lz
cuberite-c83b051c1a3e68fc9315ffffb277dc3da86cf02a.tar.xz
cuberite-c83b051c1a3e68fc9315ffffb277dc3da86cf02a.tar.zst
cuberite-c83b051c1a3e68fc9315ffffb277dc3da86cf02a.zip
Diffstat (limited to 'src/Bindings')
-rw-r--r--src/Bindings/ManualBindings.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index 038c67995..b68abb536 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -1315,8 +1315,9 @@ static int tolua_cPluginManager_ForEachConsoleCommand(lua_State * tolua_S)
static int tolua_cPluginManager_BindCommand(lua_State * a_LuaState)
{
/* Function signatures:
- cPluginManager:BindCommand(Command, Permission, Function, HelpString)
- cPluginManager.BindCommand(Command, Permission, Function, HelpString) -- without the "self" param
+ cPluginManager:Get():BindCommand(Command, Permission, Function, HelpString) -- regular
+ cPluginManager:BindCommand(Command, Permission, Function, HelpString) -- static
+ cPluginManager.BindCommand(Command, Permission, Function, HelpString) -- without the "self" param
*/
cLuaState L(a_LuaState);
cPluginLua * Plugin = cManualBindings::GetLuaPlugin(L);
@@ -1379,8 +1380,9 @@ static int tolua_cPluginManager_BindCommand(lua_State * a_LuaState)
static int tolua_cPluginManager_BindConsoleCommand(lua_State * a_LuaState)
{
/* Function signatures:
- cPluginManager:BindConsoleCommand(Command, Function, HelpString)
- cPluginManager.BindConsoleCommand(Command, Function, HelpString) -- without the "self" param
+ cPluginManager:Get():BindConsoleCommand(Command, Function, HelpString) -- regular
+ cPluginManager:BindConsoleCommand(Command, Function, HelpString) -- static
+ cPluginManager.BindConsoleCommand(Command, Function, HelpString) -- without the "self" param
*/
// Get the plugin identification out of LuaState: