diff options
author | Mattes D <github@xoft.cz> | 2015-05-10 23:11:30 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-10 23:11:30 +0200 |
commit | dd10ffb63ad98cf2f4df2141a8fd64c21d414529 (patch) | |
tree | a8c475c1d0c06dd955694cb05215cfdfdd172aea /src/Bindings/PluginLua.cpp | |
parent | Exported cPluginManager:ExecuteConsoleCommand() to Lua API. (diff) | |
download | cuberite-dd10ffb63ad98cf2f4df2141a8fd64c21d414529.tar cuberite-dd10ffb63ad98cf2f4df2141a8fd64c21d414529.tar.gz cuberite-dd10ffb63ad98cf2f4df2141a8fd64c21d414529.tar.bz2 cuberite-dd10ffb63ad98cf2f4df2141a8fd64c21d414529.tar.lz cuberite-dd10ffb63ad98cf2f4df2141a8fd64c21d414529.tar.xz cuberite-dd10ffb63ad98cf2f4df2141a8fd64c21d414529.tar.zst cuberite-dd10ffb63ad98cf2f4df2141a8fd64c21d414529.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/PluginLua.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index 4cdc5e667..76d3557a4 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -534,7 +534,7 @@ bool cPluginLua::OnEntityAddEffect(cEntity & a_Entity, int a_EffectType, int a_E -bool cPluginLua::OnExecuteCommand(cPlayer * a_Player, const AStringVector & a_Split, const AString & a_EntireCommand) +bool cPluginLua::OnExecuteCommand(cPlayer * a_Player, const AStringVector & a_Split, const AString & a_EntireCommand, cPluginManager::CommandResult & a_Result) { cCSLock Lock(m_CriticalSection); if (!m_LuaState.IsValid()) @@ -545,7 +545,7 @@ bool cPluginLua::OnExecuteCommand(cPlayer * a_Player, const AStringVector & a_Sp cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_EXECUTE_COMMAND]; for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr) { - m_LuaState.Call((int)(**itr), a_Player, a_Split, a_EntireCommand, cLuaState::Return, res); + m_LuaState.Call((int)(**itr), a_Player, a_Split, a_EntireCommand, cLuaState::Return, res, a_Result); if (res) { return true; |