diff options
author | madmaxoft <github@xoft.cz> | 2014-05-02 11:18:02 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-02 12:35:34 +0200 |
commit | 4d704255de1368d7d9912458053c2de14be1b5ac (patch) | |
tree | 0177fbc8c3fa1b40b4d22f0563a3f934d5264749 /src/Bindings/PluginManager.cpp | |
parent | Fixed warnings in ManualBindings. (diff) | |
download | cuberite-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 'src/Bindings/PluginManager.cpp')
-rw-r--r-- | src/Bindings/PluginManager.cpp | 4 |
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; } |