summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorflx5 <git@flx5.com>2015-03-11 04:14:17 +0100
committerflx5 <git@flx5.com>2015-03-11 04:14:17 +0100
commitd130696e95f83a2b7cd38258034cebf7edb890f3 (patch)
treeed12a3e1bc7cbe1b777eeecefe79a3fca9bda123 /src/Bindings/PluginLua.cpp
parentFixed client kick/crash if many block changes happend (diff)
downloadcuberite-d130696e95f83a2b7cd38258034cebf7edb890f3.tar
cuberite-d130696e95f83a2b7cd38258034cebf7edb890f3.tar.gz
cuberite-d130696e95f83a2b7cd38258034cebf7edb890f3.tar.bz2
cuberite-d130696e95f83a2b7cd38258034cebf7edb890f3.tar.lz
cuberite-d130696e95f83a2b7cd38258034cebf7edb890f3.tar.xz
cuberite-d130696e95f83a2b7cd38258034cebf7edb890f3.tar.zst
cuberite-d130696e95f83a2b7cd38258034cebf7edb890f3.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginLua.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index fb7650d42..2026ef966 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -1465,7 +1465,7 @@ bool cPluginLua::OnWorldTick(cWorld & a_World, std::chrono::milliseconds a_Dt, s
-bool cPluginLua::HandleCommand(const AStringVector & a_Split, cPlayer & a_Player)
+bool cPluginLua::HandleCommand(const AStringVector & a_Split, cPlayer & a_Player, const AString & fullCommand)
{
ASSERT(!a_Split.empty());
CommandMap::iterator cmd = m_Commands.find(a_Split[0]);
@@ -1477,7 +1477,7 @@ bool cPluginLua::HandleCommand(const AStringVector & a_Split, cPlayer & a_Player
cCSLock Lock(m_CriticalSection);
bool res = false;
- m_LuaState.Call(cmd->second, a_Split, &a_Player, cLuaState::Return, res);
+ m_LuaState.Call(cmd->second, a_Split, &a_Player, fullCommand, cLuaState::Return, res);
return res;
}
@@ -1485,7 +1485,7 @@ bool cPluginLua::HandleCommand(const AStringVector & a_Split, cPlayer & a_Player
-bool cPluginLua::HandleConsoleCommand(const AStringVector & a_Split, cCommandOutputCallback & a_Output)
+bool cPluginLua::HandleConsoleCommand(const AStringVector & a_Split, cCommandOutputCallback & a_Output, const AString & fullCommand)
{
ASSERT(!a_Split.empty());
CommandMap::iterator cmd = m_ConsoleCommands.find(a_Split[0]);
@@ -1500,7 +1500,7 @@ bool cPluginLua::HandleConsoleCommand(const AStringVector & a_Split, cCommandOut
cCSLock Lock(m_CriticalSection);
bool res = false;
AString str;
- m_LuaState.Call(cmd->second, a_Split, cLuaState::Return, res, str);
+ m_LuaState.Call(cmd->second, a_Split, fullCommand, cLuaState::Return, res, str);
if (res && !str.empty())
{
a_Output.Out(str);