summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-02-01 13:27:44 +0100
committerdaniel0916 <theschokolps@gmail.com>2014-02-01 13:27:44 +0100
commitdbbd47b96d3b3dd5ca0680eda8191808f30e3927 (patch)
tree61444f8f6ce82e59b5693676bb437dfe6733bc82 /src/Bindings/PluginManager.cpp
parentAdded "player destroying" and "player destroyed" hooks (diff)
downloadcuberite-dbbd47b96d3b3dd5ca0680eda8191808f30e3927.tar
cuberite-dbbd47b96d3b3dd5ca0680eda8191808f30e3927.tar.gz
cuberite-dbbd47b96d3b3dd5ca0680eda8191808f30e3927.tar.bz2
cuberite-dbbd47b96d3b3dd5ca0680eda8191808f30e3927.tar.lz
cuberite-dbbd47b96d3b3dd5ca0680eda8191808f30e3927.tar.xz
cuberite-dbbd47b96d3b3dd5ca0680eda8191808f30e3927.tar.zst
cuberite-dbbd47b96d3b3dd5ca0680eda8191808f30e3927.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginManager.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index 1bab8cb0f..9e318554a 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -673,27 +673,6 @@ bool cPluginManager::CallHookPlayerBrokenBlock(cPlayer & a_Player, int a_BlockX,
-bool cPluginManager::CallHookPlayerDestroying(cPlayer & a_Player)
-{
- HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_DESTROYING);
- if (Plugins == m_Hooks.end())
- {
- return false;
- }
- for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
- {
- if ((*itr)->OnPlayerDestroying(a_Player))
- {
- return true;
- }
- }
- return false;
-}
-
-
-
-
-
bool cPluginManager::CallHookPlayerDestroyed(cPlayer & a_Player)
{
HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_DESTROYED);