summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.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/Entities/Player.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 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index abdd792e0..9a935520f 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -120,7 +120,7 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName)
cPlayer::~cPlayer(void)
{
- cRoot::Get()->GetPluginManager()->CallHookPlayerDestroying(*this);
+ cRoot::Get()->GetPluginManager()->CallHookPlayerDestroyed(*this);
LOGD("Deleting cPlayer \"%s\" at %p, ID %d", m_PlayerName.c_str(), this, GetUniqueID());
@@ -136,8 +136,6 @@ cPlayer::~cPlayer(void)
delete m_InventoryWindow;
LOGD("Player %p deleted", this);
-
- cRoot::Get()->GetPluginManager()->CallHookPlayerDestroyed(*this);
}