summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-20 22:22:38 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-20 22:22:38 +0200
commit4da61e67d7638c46dc56fe451e81a5b4b0f134db (patch)
tree2e79681edadd6be596cdf8c18a29ea2c9a7be55d /src/Bindings/PluginLua.cpp
parentAdded a_ClientHandle to the HOOK_SERVER_PING hook. (diff)
downloadcuberite-4da61e67d7638c46dc56fe451e81a5b4b0f134db.tar
cuberite-4da61e67d7638c46dc56fe451e81a5b4b0f134db.tar.gz
cuberite-4da61e67d7638c46dc56fe451e81a5b4b0f134db.tar.bz2
cuberite-4da61e67d7638c46dc56fe451e81a5b4b0f134db.tar.lz
cuberite-4da61e67d7638c46dc56fe451e81a5b4b0f134db.tar.xz
cuberite-4da61e67d7638c46dc56fe451e81a5b4b0f134db.tar.zst
cuberite-4da61e67d7638c46dc56fe451e81a5b4b0f134db.zip
Diffstat (limited to '')
-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 343164ec7..462dda629 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -1193,14 +1193,14 @@ bool cPluginLua::OnProjectileHitEntity(cProjectileEntity & a_Projectile, cEntity
-bool cPluginLua::OnServerPing(cClientHandle & a_ClientHandle, AString & a_Motd, int & a_OnlinePlayersCount, int & a_MaxPlayersCount, AString & a_Favicon)
+bool cPluginLua::OnServerPing(cClientHandle & a_ClientHandle, AString & a_ServerDescription, int & a_OnlinePlayersCount, int & a_MaxPlayersCount, AString & a_Favicon)
{
cCSLock Lock(m_CriticalSection);
bool res = false;
cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_SERVER_PING];
for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
{
- m_LuaState.Call((int)(**itr), &a_ClientHandle, a_Motd, a_OnlinePlayersCount, a_MaxPlayersCount, a_Favicon, cLuaState::Return, res, a_Motd, a_OnlinePlayersCount, a_MaxPlayersCount, a_Favicon);
+ m_LuaState.Call((int)(**itr), &a_ClientHandle, a_ServerDescription, a_OnlinePlayersCount, a_MaxPlayersCount, a_Favicon, cLuaState::Return, res, a_ServerDescription, a_OnlinePlayersCount, a_MaxPlayersCount, a_Favicon);
if (res)
{
return true;