summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-20 16:01:30 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-20 16:01:30 +0200
commit228dd61995a404b6c59832bf8b0f8375374c8acc (patch)
treed9f920e0f0096ddc70f3a2289459091fdc201f66 /src/Bindings/PluginLua.cpp
parentFirst implementation of HOOK_SERVER_PING. (diff)
downloadcuberite-228dd61995a404b6c59832bf8b0f8375374c8acc.tar
cuberite-228dd61995a404b6c59832bf8b0f8375374c8acc.tar.gz
cuberite-228dd61995a404b6c59832bf8b0f8375374c8acc.tar.bz2
cuberite-228dd61995a404b6c59832bf8b0f8375374c8acc.tar.lz
cuberite-228dd61995a404b6c59832bf8b0f8375374c8acc.tar.xz
cuberite-228dd61995a404b6c59832bf8b0f8375374c8acc.tar.zst
cuberite-228dd61995a404b6c59832bf8b0f8375374c8acc.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 066e050d6..dbe2e7a0d 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(const AString & a_Username, AString & a_Motd, int & a_OnlinePlayersCount, int & a_MaxPlayersCount, AString & a_Favicon)
+bool cPluginLua::OnServerPing(AString & a_Motd, 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_Username, 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_Motd, a_OnlinePlayersCount, a_MaxPlayersCount, a_Favicon, cLuaState::Return, res, a_Motd, a_OnlinePlayersCount, a_MaxPlayersCount, a_Favicon);
if (res)
{
return true;