summaryrefslogtreecommitdiffstats
path: root/source/PluginManager.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-28 17:54:11 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-28 17:54:11 +0100
commit71bbf2d44ba5fc00fcb15ed96aff083342309498 (patch)
tree94657c14eddc2f81fe55d8c6a15e22165f6d7897 /source/PluginManager.cpp
parentUpdated HookNotify with the hook renaming. (diff)
downloadcuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar
cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.gz
cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.bz2
cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.lz
cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.xz
cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.tar.zst
cuberite-71bbf2d44ba5fc00fcb15ed96aff083342309498.zip
Diffstat (limited to '')
-rw-r--r--source/PluginManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp
index e7a4329ca..921955ba4 100644
--- a/source/PluginManager.cpp
+++ b/source/PluginManager.cpp
@@ -407,16 +407,16 @@ bool cPluginManager::CallHookHandshake(cClientHandle * a_ClientHandle, const ASt
-bool cPluginManager::CallHookKilled(cPawn & a_Victim, cEntity * a_Killer)
+bool cPluginManager::CallHookKilling(cPawn & a_Victim, cEntity * a_Killer)
{
- HookMap::iterator Plugins = m_Hooks.find(HOOK_KILLED);
+ HookMap::iterator Plugins = m_Hooks.find(HOOK_KILLING);
if (Plugins == m_Hooks.end())
{
return false;
}
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
- if ((*itr)->OnKilled(a_Victim, a_Killer))
+ if ((*itr)->OnKilling(a_Victim, a_Killer))
{
return true;
}