summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-10 21:29:06 +0200
committerMattes D <github@xoft.cz>2015-05-10 21:37:46 +0200
commitcbb1eff17a085f57472f67cbe3682232fb3a4aeb (patch)
tree5081f9c836e6f3419585980d42834b1eec944e67 /src/Bindings/PluginLua.cpp
parentMerge pull request #1977 from mc-server/warnings (diff)
downloadcuberite-cbb1eff17a085f57472f67cbe3682232fb3a4aeb.tar
cuberite-cbb1eff17a085f57472f67cbe3682232fb3a4aeb.tar.gz
cuberite-cbb1eff17a085f57472f67cbe3682232fb3a4aeb.tar.bz2
cuberite-cbb1eff17a085f57472f67cbe3682232fb3a4aeb.tar.lz
cuberite-cbb1eff17a085f57472f67cbe3682232fb3a4aeb.tar.xz
cuberite-cbb1eff17a085f57472f67cbe3682232fb3a4aeb.tar.zst
cuberite-cbb1eff17a085f57472f67cbe3682232fb3a4aeb.zip
Diffstat (limited to 'src/Bindings/PluginLua.cpp')
-rw-r--r--src/Bindings/PluginLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index 4c98b8d26..4cdc5e667 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)
+bool cPluginLua::OnExecuteCommand(cPlayer * a_Player, const AStringVector & a_Split, const AString & a_EntireCommand)
{
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, cLuaState::Return, res);
+ m_LuaState.Call((int)(**itr), a_Player, a_Split, a_EntireCommand, cLuaState::Return, res);
if (res)
{
return true;