summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-02 11:18:02 +0200
committermadmaxoft <github@xoft.cz>2014-05-02 12:35:34 +0200
commit4d704255de1368d7d9912458053c2de14be1b5ac (patch)
tree0177fbc8c3fa1b40b4d22f0563a3f934d5264749 /src/Bindings/PluginManager.cpp
parentFixed warnings in ManualBindings. (diff)
downloadcuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.gz
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.bz2
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.lz
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.xz
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.zst
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index 6a5356c0b..aaccc606d 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -442,7 +442,7 @@ bool cPluginManager::CallHookCraftingNoRecipe(const cPlayer * a_Player, const cC
-bool cPluginManager::CallHookDisconnect(cPlayer * a_Player, const AString & a_Reason)
+bool cPluginManager::CallHookDisconnect(cClientHandle & a_Client, const AString & a_Reason)
{
HookMap::iterator Plugins = m_Hooks.find(HOOK_DISCONNECT);
if (Plugins == m_Hooks.end())
@@ -451,7 +451,7 @@ bool cPluginManager::CallHookDisconnect(cPlayer * a_Player, const AString & a_Re
}
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
- if ((*itr)->OnDisconnect(a_Player, a_Reason))
+ if ((*itr)->OnDisconnect(a_Client, a_Reason))
{
return true;
}