diff options
author | Mattes D <github@xoft.cz> | 2015-03-11 22:43:52 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-03-11 22:43:52 +0100 |
commit | 439eb8d6cb111fdc336c95aec497a8eb9ddf2df1 (patch) | |
tree | a8ceefb71e807fa5b0acba588e07737086ea8d1c /src/Bindings/PluginLua.cpp | |
parent | Merge pull request #1804 from mc-server/streamlinetravis (diff) | |
parent | Fixed coding conventions for Pull Request #1807 (diff) | |
download | cuberite-439eb8d6cb111fdc336c95aec497a8eb9ddf2df1.tar cuberite-439eb8d6cb111fdc336c95aec497a8eb9ddf2df1.tar.gz cuberite-439eb8d6cb111fdc336c95aec497a8eb9ddf2df1.tar.bz2 cuberite-439eb8d6cb111fdc336c95aec497a8eb9ddf2df1.tar.lz cuberite-439eb8d6cb111fdc336c95aec497a8eb9ddf2df1.tar.xz cuberite-439eb8d6cb111fdc336c95aec497a8eb9ddf2df1.tar.zst cuberite-439eb8d6cb111fdc336c95aec497a8eb9ddf2df1.zip |
Diffstat (limited to 'src/Bindings/PluginLua.cpp')
-rw-r--r-- | src/Bindings/PluginLua.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index fb7650d42..263d1f005 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 & a_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, a_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 & a_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, a_FullCommand, cLuaState::Return, res, str); if (res && !str.empty()) { a_Output.Out(str); |